pub struct NetworkConnection {
pub local_addr: SocketAddr,
pub remote_addr: SocketAddr,
pub state: ConnectionState,
pub protocol: Protocol,
pub pid: Option<u32>,
pub process_name: Option<String>,
pub bytes_sent: u64,
pub bytes_received: u64,
pub socket_info: SocketInfo,
}Fields§
§local_addr: SocketAddr§remote_addr: SocketAddr§state: ConnectionState§protocol: Protocol§pid: Option<u32>§process_name: Option<String>§bytes_sent: u64§bytes_received: u64§socket_info: SocketInfoTrait Implementations§
Source§impl Clone for NetworkConnection
impl Clone for NetworkConnection
Source§fn clone(&self) -> NetworkConnection
fn clone(&self) -> NetworkConnection
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 moreAuto Trait Implementations§
impl Freeze for NetworkConnection
impl RefUnwindSafe for NetworkConnection
impl Send for NetworkConnection
impl Sync for NetworkConnection
impl Unpin for NetworkConnection
impl UnsafeUnpin for NetworkConnection
impl UnwindSafe for NetworkConnection
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