[−][src]Struct sodium_rust::SodiumCtx
Fields
impl_: SodiumCtxImpl
Implementations
impl SodiumCtx
[src]
pub fn new() -> SodiumCtx
[src]
pub fn new_cell<A: Clone + Send + 'static>(&self, a: A) -> Cell<A>
[src]
pub fn new_stream<A: Clone + Send + 'static>(&self) -> Stream<A>
[src]
pub fn new_cell_sink<A: Clone + Send + 'static>(&self, a: A) -> CellSink<A>
[src]
pub fn new_stream_sink<A: Clone + Send + 'static>(&self) -> StreamSink<A>
[src]
pub fn new_cell_loop<A: Clone + Send + 'static>(&self) -> CellLoop<A>
[src]
pub fn new_stream_loop<A: Clone + Send + 'static>(&self) -> StreamLoop<A>
[src]
pub fn new_stream_sink_with_coalescer<A: Clone + Send + 'static, COALESCER: FnMut(&A, &A) -> A + Send + 'static>(
&self,
coalescer: COALESCER
) -> StreamSink<A>
[src]
&self,
coalescer: COALESCER
) -> StreamSink<A>
pub fn transaction<R, K: FnOnce() -> R>(&self, k: K) -> R
[src]
pub fn new_transaction(&self) -> Transaction
[src]
pub fn post<K: FnMut() + Send + 'static>(&self, k: K)
[src]
pub fn new_router<A, K>(
&self,
in_stream: &Stream<A>,
selector: impl Fn(&A) -> Vec<K> + Send + Sync + 'static
) -> Router<A, K> where
A: Clone + Send + 'static,
K: Send + Sync + Eq + Hash + 'static,
[src]
&self,
in_stream: &Stream<A>,
selector: impl Fn(&A) -> Vec<K> + Send + Sync + 'static
) -> Router<A, K> where
A: Clone + Send + 'static,
K: Send + Sync + Eq + Hash + 'static,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SodiumCtx
impl Send for SodiumCtx
impl Sync for SodiumCtx
impl Unpin for SodiumCtx
impl !UnwindSafe for SodiumCtx
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>,