[][src]Struct sodium_rust::Router

pub struct Router<A, K> { /* fields omitted */ }

Implementations

impl<A, K> Router<A, K>[src]

pub fn new(
    sodium_ctx: &SodiumCtx,
    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]

pub fn filter_matches(&self, k: &K) -> Stream<A> where
    A: Clone + Send + 'static,
    K: Clone + Send + Sync + Eq + Hash + 'static, 
[src]

Auto Trait Implementations

impl<A, K> !RefUnwindSafe for Router<A, K>

impl<A, K> Send for Router<A, K> where
    A: Send,
    K: Send + Sync

impl<A, K> Sync for Router<A, K> where
    A: Send,
    K: Send + Sync

impl<A, K> Unpin for Router<A, K>

impl<A, K> !UnwindSafe for Router<A, K>

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, 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.