pub enum BookOrigin {
Gossip,
Seed,
Manual,
}Expand description
How a peer-book entry entered the book. Ordered by precedence: learning never downgrades an entry, and manual and seed entries are never evicted.
Variants§
Trait Implementations§
Source§impl Clone for BookOrigin
impl Clone for BookOrigin
impl Copy for BookOrigin
Source§impl Debug for BookOrigin
impl Debug for BookOrigin
Source§impl<'de> Deserialize<'de> for BookOrigin
impl<'de> Deserialize<'de> for BookOrigin
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
impl Eq for BookOrigin
Source§impl Ord for BookOrigin
impl Ord for BookOrigin
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BookOrigin
impl PartialEq for BookOrigin
Source§impl PartialOrd for BookOrigin
impl PartialOrd for BookOrigin
Source§impl Serialize for BookOrigin
impl Serialize for BookOrigin
impl StructuralPartialEq for BookOrigin
Auto Trait Implementations§
impl Freeze for BookOrigin
impl RefUnwindSafe for BookOrigin
impl Send for BookOrigin
impl Sync for BookOrigin
impl Unpin for BookOrigin
impl UnsafeUnpin for BookOrigin
impl UnwindSafe for BookOrigin
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