Struct Filter
pub struct Filter<T, F> { /* private fields */ }Expand description
A policy that rejects the peers a predicate refuses, built by Policy::filter.
Trait Implementations§
Auto Trait Implementations§
impl<T, F> Freeze for Filter<T, F>
impl<T, F> RefUnwindSafe for Filter<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for Filter<T, F>
impl<T, F> Sync for Filter<T, F>
impl<T, F> Unpin for Filter<T, F>
impl<T, F> UnsafeUnpin for Filter<T, F>where
T: UnsafeUnpin,
F: UnsafeUnpin,
impl<T, F> UnwindSafe for Filter<T, F>where
T: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<P, T> DynPolicy<P> for Twhere
P: PeerId,
T: Policy<P>,
impl<P, T> DynPolicy<P> for Twhere
P: PeerId,
T: Policy<P>,
§fn decide<'a>(
&'a self,
request: &'a PeerRequest<P>,
) -> Pin<Box<dyn Future<Output = Result<Authorization, Rejection>> + Send + 'a>>
fn decide<'a>( &'a self, request: &'a PeerRequest<P>, ) -> Pin<Box<dyn Future<Output = Result<Authorization, Rejection>> + Send + 'a>>
Decides as
Policy::decide does, with a boxed future.