[][src]Struct sodium_rust::Stream

pub struct Stream<A> {
    pub impl_: StreamImpl<A>,
}

Fields

impl_: StreamImpl<A>

Implementations

impl<A: Clone + Send + 'static> Stream<Option<A>>[src]

pub fn filter_option(&self) -> Stream<A>[src]

impl<'a, A: Clone + Send + Sync + 'static, COLLECTION: IntoIterator<Item = A> + Clone + Send + 'static> Stream<COLLECTION>[src]

pub fn split(&self) -> Stream<A>[src]

impl<A: Clone + Send + 'static> Stream<A>[src]

pub fn new(sodium_ctx: &SodiumCtx) -> Stream<A>[src]

pub fn to_dep(&self) -> Dep[src]

pub fn snapshot<B: Clone + Send + 'static, C: Clone + Send + 'static, FN: IsLambda2<A, B, C> + Send + Sync + 'static>(
    &self,
    cb: &Cell<B>,
    f: FN
) -> Stream<C>
[src]

pub fn snapshot1<B: Send + Clone + 'static>(&self, cb: &Cell<B>) -> Stream<B>[src]

pub fn snapshot3<B: Send + Clone + 'static, C: Send + Clone + 'static, D: Send + Clone + 'static, FN: IsLambda3<A, B, C, D> + Send + Sync + 'static>(
    &self,
    cb: &Cell<B>,
    cc: &Cell<C>,
    f: FN
) -> Stream<D>
[src]

pub fn snapshot4<B: Send + Clone + 'static, C: Send + Clone + 'static, D: Send + Clone + 'static, E: Send + Clone + 'static, FN: IsLambda4<A, B, C, D, E> + Send + Sync + 'static>(
    &self,
    cb: &Cell<B>,
    cc: &Cell<C>,
    cd: &Cell<D>,
    f: FN
) -> Stream<E>
[src]

pub fn snapshot5<B: Send + Clone + 'static, C: Send + Clone + 'static, D: Send + Clone + 'static, E: Send + Clone + 'static, F: Send + Clone + 'static, FN: IsLambda5<A, B, C, D, E, F> + Send + Sync + 'static>(
    &self,
    cb: &Cell<B>,
    cc: &Cell<C>,
    cd: &Cell<D>,
    ce: &Cell<E>,
    f: FN
) -> Stream<F>
[src]

pub fn snapshot6<B: Send + Clone + 'static, C: Send + Clone + 'static, D: Send + Clone + 'static, E: Send + Clone + 'static, F: Send + Clone + 'static, G: Send + Clone + 'static, FN: IsLambda6<A, B, C, D, E, F, G> + Send + Sync + 'static>(
    &self,
    cb: &Cell<B>,
    cc: &Cell<C>,
    cd: &Cell<D>,
    ce: &Cell<E>,
    cf: &Cell<F>,
    f: FN
) -> Stream<G>
[src]

pub fn map<B: Send + Clone + 'static, FN: IsLambda1<A, B> + Send + Sync + 'static>(
    &self,
    f: FN
) -> Stream<B>
[src]

pub fn map_to<B: Send + Sync + Clone + 'static>(&self, b: B) -> Stream<B>[src]

pub fn filter<PRED: IsLambda1<A, bool> + Send + Sync + 'static>(
    &self,
    pred: PRED
) -> Stream<A>
[src]

pub fn or_else(&self, s2: &Stream<A>) -> Stream<A>[src]

pub fn merge<FN: IsLambda2<A, A, A> + Send + Sync + 'static>(
    &self,
    s2: &Stream<A>,
    f: FN
) -> Stream<A>
[src]

pub fn hold(&self, a: A) -> Cell<A>[src]

pub fn hold_lazy(&self, a: Lazy<A>) -> Cell<A>[src]

pub fn gate(&self, cpred: &Cell<bool>) -> Stream<A>[src]

pub fn once(&self) -> Stream<A>[src]

pub fn collect<B, S, F>(&self, init_state: S, f: F) -> Stream<B> where
    B: Send + Clone + 'static,
    S: Send + Clone + 'static,
    F: IsLambda2<A, S, (B, S)> + Send + Sync + 'static, 
[src]

pub fn collect_lazy<B, S, F>(&self, init_state: Lazy<S>, f: F) -> Stream<B> where
    B: Send + Clone + 'static,
    S: Send + Clone + 'static,
    F: IsLambda2<A, S, (B, S)> + Send + Sync + 'static, 
[src]

pub fn accum<S, F>(&self, init_state: S, f: F) -> Cell<S> where
    S: Send + Clone + 'static,
    F: IsLambda2<A, S, S> + Send + Sync + 'static, 
[src]

pub fn accum_lazy<S, F>(&self, init_state: Lazy<S>, f: F) -> Cell<S> where
    S: Send + Clone + 'static,
    F: IsLambda2<A, S, S> + Send + Sync + 'static, 
[src]

pub fn listen_weak<K: IsLambda1<A, ()> + Send + Sync + 'static>(
    &self,
    k: K
) -> Listener
[src]

pub fn listen<K: IsLambda1<A, ()> + Send + Sync + 'static>(
    &self,
    k: K
) -> Listener
[src]

Trait Implementations

impl<A> Clone for Stream<A>[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Stream<A>

impl<A> Send for Stream<A> where
    A: Send

impl<A> Sync for Stream<A> where
    A: Send

impl<A> Unpin for Stream<A>

impl<A> !UnwindSafe for Stream<A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.