[−][src]Struct sodium_rust::Router
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]
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,
pub fn filter_matches(&self, k: &K) -> Stream<A> where
A: Clone + Send + 'static,
K: Clone + Send + Sync + Eq + Hash + 'static,
[src]
A: Clone + Send + 'static,
K: Clone + Send + Sync + Eq + Hash + 'static,
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,
A: Send,
K: Send + Sync,
impl<A, K> Sync for Router<A, K> where
A: Send,
K: Send + Sync,
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]
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,
pub 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, 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.
pub 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>,