pub struct Open(pub Grant);Expand description
A policy that admits everyone with one grant.
A node’s default policy is Open(Grant::subscribe_only()).
Tuple Fields§
§0: GrantTrait Implementations§
impl Eq for Open
Source§impl<P: PeerId> Policy<P> for Open
impl<P: PeerId> Policy<P> for Open
impl StructuralPartialEq for Open
Auto Trait Implementations§
impl Freeze for Open
impl RefUnwindSafe for Open
impl Send for Open
impl Sync for Open
impl Unpin for Open
impl UnsafeUnpin for Open
impl UnwindSafe for Open
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P, T> DynPolicy<P> for T
impl<P, T> DynPolicy<P> for T
Source§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.