pub enum SocketAttr {
Transparent,
Mark,
Wildcard,
Cgroupv2,
}Expand description
A socket attribute to match on.
Variants§
Transparent
Match on the IP_TRANSPARENT socket option in the found socket.
Mark
Match on the socket mark (SOL_SOCKET, SO_MARK).
Wildcard
Indicates whether the socket is wildcard-bound (e.g. 0.0.0.0 or ::0).
Cgroupv2
The cgroup version 2 for this socket (path from /sys/fs/cgroup).
Trait Implementations§
Source§impl Clone for SocketAttr
impl Clone for SocketAttr
Source§fn clone(&self) -> SocketAttr
fn clone(&self) -> SocketAttr
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 SocketAttr
impl Debug for SocketAttr
Source§impl<'de> Deserialize<'de> for SocketAttr
impl<'de> Deserialize<'de> for SocketAttr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SocketAttr
impl Hash for SocketAttr
Source§impl JsonSchema for SocketAttr
impl JsonSchema for SocketAttr
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SocketAttr
impl PartialEq for SocketAttr
Source§impl Serialize for SocketAttr
impl Serialize for SocketAttr
impl Copy for SocketAttr
impl Eq for SocketAttr
impl StructuralPartialEq for SocketAttr
Auto Trait Implementations§
impl Freeze for SocketAttr
impl RefUnwindSafe for SocketAttr
impl Send for SocketAttr
impl Sync for SocketAttr
impl Unpin for SocketAttr
impl UnsafeUnpin for SocketAttr
impl UnwindSafe for SocketAttr
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