Enum bee_network::PeerRelation [−][src]
pub enum PeerRelation {
Known,
Unknown,
}
Expand description
Describes the relation with a peer.
Variants
Represents a persistent peer. If the connection to such a peer drops, the network will try to reconnect.
Represents an ephemeral peer. If the connection to such a peer drops, the network won’t try to reconnect.
Implementations
Returns whether the peer is unknown.
Sets the relation to PeerRelation::Unknown
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PeerRelation
impl Send for PeerRelation
impl Sync for PeerRelation
impl Unpin for PeerRelation
impl UnwindSafe for PeerRelation
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self