pub struct Mark {
pub domain: MarkDomain,
pub mask: u32,
pub value: u32,
pub invert: bool,
}
Expand description
A matcher for the mark on a socket or packet.
Fields§
§domain: MarkDomain
The mark domain to match against.
mask: u32
The bitmask to apply while matching. Only those bits specified in this mask are compared.
value: u32
The mark value to compare for equality.
invert: bool
Whether to check for an “inverse” or “negative” match.
The mask is applied as normal, but the value is checked for inequality.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Mark, D> for Mark
impl<D: ResourceDialect> Decode<Mark, D> for Mark
Source§impl<D: ResourceDialect, T0: Encode<MarkDomain, D>, T1: Encode<u32, D>, T2: Encode<u32, D>, T3: Encode<bool, D>> Encode<Mark, D> for (T0, T1, T2, T3)
impl<D: ResourceDialect, T0: Encode<MarkDomain, D>, T1: Encode<u32, D>, T2: Encode<u32, D>, T3: Encode<bool, D>> Encode<Mark, D> for (T0, T1, T2, T3)
Source§impl Ord for Mark
impl Ord for Mark
Source§impl PartialOrd for Mark
impl PartialOrd for Mark
Source§impl TypeMarker for Mark
impl TypeMarker for Mark
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Mark
impl ValueTypeMarker for Mark
impl Copy for Mark
impl Eq for Mark
impl Persistable for Mark
impl StructuralPartialEq for Mark
Auto Trait Implementations§
impl Freeze for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnwindSafe for Mark
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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