pub struct BackbonePeerHookEvent {
pub server_interface_id: InterfaceId,
pub peer_interface_id: Option<InterfaceId>,
pub peer_ip: IpAddr,
pub peer_port: u16,
pub connected_for: Duration,
pub had_received_data: bool,
pub penalty_level: u8,
pub blacklist_for: Duration,
}Expand description
Hook-visible snapshot of a backbone peer lifecycle event.
Fields§
§server_interface_id: InterfaceId§peer_interface_id: Option<InterfaceId>§peer_ip: IpAddr§peer_port: u16§connected_for: Duration§had_received_data: bool§penalty_level: u8§blacklist_for: DurationTrait Implementations§
Source§impl Clone for BackbonePeerHookEvent
impl Clone for BackbonePeerHookEvent
Source§fn clone(&self) -> BackbonePeerHookEvent
fn clone(&self) -> BackbonePeerHookEvent
Returns a duplicate 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 BackbonePeerHookEvent
impl Debug for BackbonePeerHookEvent
Source§impl PartialEq for BackbonePeerHookEvent
impl PartialEq for BackbonePeerHookEvent
impl Eq for BackbonePeerHookEvent
impl StructuralPartialEq for BackbonePeerHookEvent
Auto Trait Implementations§
impl Freeze for BackbonePeerHookEvent
impl RefUnwindSafe for BackbonePeerHookEvent
impl Send for BackbonePeerHookEvent
impl Sync for BackbonePeerHookEvent
impl Unpin for BackbonePeerHookEvent
impl UnsafeUnpin for BackbonePeerHookEvent
impl UnwindSafe for BackbonePeerHookEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more