pub struct BookEntry {
pub peer_id: Option<String>,
pub addrs: Vec<String>,
pub origin: BookOrigin,
pub last_success: Option<u64>,
pub failures: u32,
pub banned_until: Option<u64>,
}Expand description
One peer-book entry as served by GET /v1/overlay/book: an untrusted
routing hint. Addresses carry no terminal /p2p; peer_id is set once a
dial has authenticated it. Times are Unix seconds.
Fields§
§peer_id: Option<String>§addrs: Vec<String>§origin: BookOrigin§last_success: Option<u64>§failures: u32§banned_until: Option<u64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for BookEntry
impl<'de> Deserialize<'de> for BookEntry
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 BookEntry
impl StructuralPartialEq for BookEntry
Auto Trait Implementations§
impl Freeze for BookEntry
impl RefUnwindSafe for BookEntry
impl Send for BookEntry
impl Sync for BookEntry
impl Unpin for BookEntry
impl UnsafeUnpin for BookEntry
impl UnwindSafe for BookEntry
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