Struct Closed
pub struct Closed;Expand description
A policy that rejects everyone.
Trait Implementations§
impl Copy for Closed
impl Eq for Closed
§impl<P> Policy<P> for Closedwhere
P: PeerId,
impl<P> Policy<P> for Closedwhere
P: PeerId,
impl StructuralPartialEq for Closed
Auto Trait Implementations§
impl Freeze for Closed
impl RefUnwindSafe for Closed
impl Send for Closed
impl Sync for Closed
impl Unpin for Closed
impl UnsafeUnpin for Closed
impl UnwindSafe for Closed
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.