pub struct Port {
pub start: u16,
pub end: u16,
pub invert: bool,
}
Expand description
A matcher for transport-layer port numbers.
start
must <= end
.
Fields§
§start: u16
The inclusive start of the port range.
end: u16
The inclusive end of the port range.
invert: bool
Whether to check for an “inverse” or “negative” match.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Port, D> for Port
impl<D: ResourceDialect> Decode<Port, D> for Port
Source§impl<D: ResourceDialect, T0: Encode<u16, D>, T1: Encode<u16, D>, T2: Encode<bool, D>> Encode<Port, D> for (T0, T1, T2)
impl<D: ResourceDialect, T0: Encode<u16, D>, T1: Encode<u16, D>, T2: Encode<bool, D>> Encode<Port, D> for (T0, T1, T2)
Source§impl Ord for Port
impl Ord for Port
Source§impl PartialOrd for Port
impl PartialOrd for Port
Source§impl TypeMarker for Port
impl TypeMarker for Port
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
.Source§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 moreSource§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 Port
impl ValueTypeMarker for Port
impl Copy for Port
impl Eq for Port
impl Persistable for Port
impl StructuralPartialEq for Port
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§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