Enum floresta_wire::address_man::AddressState
source · pub enum AddressState {
NeverTried,
Tried(u64),
Banned(u64),
Connected,
Failed(u64),
}
Variants§
NeverTried
We never tried this peer before, so we don’t know what to expect. This variant also applies to peers that we tried to connect, but failed or we didn’t connect to for a long time.
Tried(u64)
We tried this peer before, and had success at least once, so we know what to expect
Banned(u64)
This peer misbehaved and we banned them
Connected
We are connected to this peer right now
Failed(u64)
We tried connecting, but failed
Trait Implementations§
source§impl Clone for AddressState
impl Clone for AddressState
source§fn clone(&self) -> AddressState
fn clone(&self) -> AddressState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AddressState
impl Debug for AddressState
source§impl<'de> Deserialize<'de> for AddressState
impl<'de> Deserialize<'de> for AddressState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<AddressState> for AddressState
impl PartialEq<AddressState> for AddressState
source§fn eq(&self, other: &AddressState) -> bool
fn eq(&self, other: &AddressState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AddressState
impl Serialize for AddressState
impl StructuralPartialEq for AddressState
Auto Trait Implementations§
impl RefUnwindSafe for AddressState
impl Send for AddressState
impl Sync for AddressState
impl Unpin for AddressState
impl UnwindSafe for AddressState
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