pub struct BackbonePeerContext {
pub context_type: u32,
pub peer_ip_family: u8,
pub peer_port: u16,
pub had_received_data: u8,
pub server_interface_id: u64,
pub peer_interface_id: u64,
pub connected_for_secs: u64,
pub penalty_level: u8,
pub blacklist_for_secs: u64,
pub peer_ip: [u8; 16],
/* private fields */
}Expand description
Backbone peer lifecycle context layout — matches host ArenaBackbonePeer.
Fields§
§context_type: u32§peer_ip_family: u8§peer_port: u16§had_received_data: u8§server_interface_id: u64§peer_interface_id: u64§connected_for_secs: u64§penalty_level: u8§blacklist_for_secs: u64§peer_ip: [u8; 16]Trait Implementations§
Source§impl Clone for BackbonePeerContext
impl Clone for BackbonePeerContext
Source§fn clone(&self) -> BackbonePeerContext
fn clone(&self) -> BackbonePeerContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackbonePeerContext
Auto Trait Implementations§
impl Freeze for BackbonePeerContext
impl RefUnwindSafe for BackbonePeerContext
impl Send for BackbonePeerContext
impl Sync for BackbonePeerContext
impl Unpin for BackbonePeerContext
impl UnsafeUnpin for BackbonePeerContext
impl UnwindSafe for BackbonePeerContext
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> 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