Struct SyncStream

struct SyncStream<S> { ... }

Stream which is Sync.

Examples

use sync_wrapper::SyncStream;
use futures::stream;

let st = stream::iter(vec![1]);
let st = SyncStream::new(st);

Implementations

impl<S: futures_core::Stream> SyncStream<S>

fn new(inner: S) -> Self
fn into_inner(self: Self) -> S

impl<S> Freeze for SyncStream<S>

impl<S> RefUnwindSafe for SyncStream<S>

impl<S> Send for SyncStream<S>

impl<S> Sync for SyncStream<S>

impl<S> Unpin for SyncStream<S>

impl<S> UnsafeUnpin for SyncStream<S>

impl<S> UnwindSafe for SyncStream<S>

impl<S, T, E> TryStream for SyncStream<S>

fn try_poll_next(self: Pin<&mut S>, cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>

impl<S: futures_core::Stream> Stream for SyncStream<S>

fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<<Self as >::Item>>

impl<T> Any for SyncStream<S>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for SyncStream<S>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for SyncStream<S>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> Debug for SyncStream<T>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<T> From for SyncStream<S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for SyncStream<S>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for SyncStream<S>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for SyncStream<S>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>