[][src]Struct sodium_rust::SodiumCtx

pub struct SodiumCtx {
    pub impl_: SodiumCtxImpl,
}

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]

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]

Trait Implementations

impl Clone for SodiumCtx[src]

impl Default for SodiumCtx[src]

Auto Trait Implementations

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.