[−][src]Struct sodium_rust::Stream
Fields
impl_: StreamImpl<A>
Implementations
impl<A: Clone + Send + 'static> Stream<Option<A>>
[src]
pub fn filter_option(&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]
&self,
cb: &Cell<B>,
f: FN
) -> Stream<C>
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]
&self,
cb: &Cell<B>,
cc: &Cell<C>,
f: FN
) -> Stream<D>
pub fn map<B: Send + Clone + 'static, FN: IsLambda1<A, B> + Send + Sync + 'static>(
&self,
f: FN
) -> Stream<B>
[src]
&self,
f: FN
) -> Stream<B>
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]
&self,
pred: PRED
) -> Stream<A>
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]
&self,
s2: &Stream<A>,
f: FN
) -> Stream<A>
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]
B: Send + Clone + 'static,
S: Send + Clone + 'static,
F: IsLambda2<A, S, (B, S)> + Send + Sync + 'static,
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]
B: Send + Clone + 'static,
S: Send + Clone + 'static,
F: IsLambda2<A, S, (B, S)> + Send + Sync + 'static,
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]
S: Send + Clone + 'static,
F: IsLambda2<A, S, S> + Send + Sync + 'static,
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]
S: Send + Clone + 'static,
F: IsLambda2<A, S, S> + Send + Sync + 'static,
pub fn listen_weak<K: IsLambda1<A, ()> + Send + Sync + 'static>(
&self,
k: K
) -> Listener
[src]
&self,
k: K
) -> Listener
pub fn listen<K: IsLambda1<A, ()> + Send + Sync + 'static>(
&self,
k: K
) -> Listener
[src]
&self,
k: K
) -> Listener
Trait Implementations
impl<A> Clone for Stream<A>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<A> !RefUnwindSafe for Stream<A>
impl<A> Send for Stream<A> where
A: Send,
A: Send,
impl<A> Sync for Stream<A> where
A: Send,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,