Enum PeerPolicy
pub enum PeerPolicy {
Required,
Optional,
}Expand description
Whether a peer must know a payload to be admitted.
Variants§
Required
A peer without the payload, or with another schema version of it, is refused admission.
Optional
A peer without it joins; a send to that peer is
PayloadSendError::UnsupportedPeer and no packet.
Trait Implementations§
§impl Clone for PeerPolicy
impl Clone for PeerPolicy
§fn clone(&self) -> PeerPolicy
fn clone(&self) -> PeerPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PeerPolicy
§impl Debug for PeerPolicy
impl Debug for PeerPolicy
impl Eq for PeerPolicy
§impl Hash for PeerPolicy
impl Hash for PeerPolicy
§impl PartialEq for PeerPolicy
impl PartialEq for PeerPolicy
impl StructuralPartialEq for PeerPolicy
Auto Trait Implementations§
impl Freeze for PeerPolicy
impl RefUnwindSafe for PeerPolicy
impl Send for PeerPolicy
impl Sync for PeerPolicy
impl Unpin for PeerPolicy
impl UnsafeUnpin for PeerPolicy
impl UnwindSafe for PeerPolicy
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