pub struct NetstatResponse {
pub results: Vec<NetstatResult>,
}Expand description
Response from netstat request.
Fields§
§results: Vec<NetstatResult>Results from each node.
Implementations§
Source§impl NetstatResponse
impl NetstatResponse
Sourcepub fn first(&self) -> Option<&NetstatResult>
pub fn first(&self) -> Option<&NetstatResult>
Get the first result.
Sourcepub fn total_connections(&self) -> usize
pub fn total_connections(&self) -> usize
Get total number of connections.
Sourcepub fn listening(&self) -> Vec<&ConnectionRecord>
pub fn listening(&self) -> Vec<&ConnectionRecord>
Get all listening connections.
Sourcepub fn established(&self) -> Vec<&ConnectionRecord>
pub fn established(&self) -> Vec<&ConnectionRecord>
Get all established connections.
Trait Implementations§
Source§impl Clone for NetstatResponse
impl Clone for NetstatResponse
Source§fn clone(&self) -> NetstatResponse
fn clone(&self) -> NetstatResponse
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 NetstatResponse
impl Debug for NetstatResponse
Source§impl From<NetstatResponse> for NetstatResponse
impl From<NetstatResponse> for NetstatResponse
Source§fn from(proto: ProtoNetstatResponse) -> Self
fn from(proto: ProtoNetstatResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetstatResponse
impl RefUnwindSafe for NetstatResponse
impl Send for NetstatResponse
impl Sync for NetstatResponse
impl Unpin for NetstatResponse
impl UnwindSafe for NetstatResponse
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request