pub struct NetstatRequest {
pub filter: NetstatFilter,
pub include_pid: bool,
pub l4proto: Option<L4ProtoFilter>,
pub host_network: bool,
pub all_netns: bool,
}Expand description
Request for netstat information.
Fields§
§filter: NetstatFilterFilter type.
include_pid: boolInclude process information.
l4proto: Option<L4ProtoFilter>Layer 4 protocol filter.
host_network: boolInclude host network namespace.
all_netns: boolInclude all network namespaces.
Implementations§
Trait Implementations§
Source§impl Clone for NetstatRequest
impl Clone for NetstatRequest
Source§fn clone(&self) -> NetstatRequest
fn clone(&self) -> NetstatRequest
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 NetstatRequest
impl Debug for NetstatRequest
Source§impl Default for NetstatRequest
impl Default for NetstatRequest
Source§fn default() -> NetstatRequest
fn default() -> NetstatRequest
Returns the “default value” for a type. Read more
Source§impl From<NetstatRequest> for NetstatRequest
impl From<NetstatRequest> for NetstatRequest
Source§fn from(req: NetstatRequest) -> Self
fn from(req: NetstatRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetstatRequest
impl RefUnwindSafe for NetstatRequest
impl Send for NetstatRequest
impl Sync for NetstatRequest
impl Unpin for NetstatRequest
impl UnwindSafe for NetstatRequest
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