pub struct PortStatus {
pub flags: Option<StatusFlags>,
pub mtu: Option<u32>,
/* private fields */
}
Expand description
Dynamic port information.
Fields§
§flags: Option<StatusFlags>
Port status flags.
mtu: Option<u32>
Maximum transmit unit for this port, in bytes.
The reported MTU is the size of an entire frame, including any header and trailer bytes for whatever protocols this port supports.
Trait Implementations§
Source§impl Clone for PortStatus
impl Clone for PortStatus
Source§fn clone(&self) -> PortStatus
fn clone(&self) -> PortStatus
Returns a copy 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 PortStatus
impl Debug for PortStatus
Source§impl<D: ResourceDialect> Decode<PortStatus, D> for PortStatus
impl<D: ResourceDialect> Decode<PortStatus, D> for PortStatus
Source§impl Default for PortStatus
impl Default for PortStatus
Source§fn default() -> PortStatus
fn default() -> PortStatus
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<PortStatus, D> for &PortStatus
impl<D: ResourceDialect> Encode<PortStatus, D> for &PortStatus
Source§impl PartialEq for PortStatus
impl PartialEq for PortStatus
Source§impl TypeMarker for PortStatus
impl TypeMarker for PortStatus
Source§type Owned = PortStatus
type Owned = PortStatus
The owned Rust type which this FIDL type decodes into.
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 PortStatus
impl ValueTypeMarker for PortStatus
Source§type Borrowed<'a> = &'a PortStatus
type Borrowed<'a> = &'a PortStatus
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for PortStatus
impl StructuralPartialEq for PortStatus
Auto Trait Implementations§
impl Freeze for PortStatus
impl RefUnwindSafe for PortStatus
impl Send for PortStatus
impl Sync for PortStatus
impl Unpin for PortStatus
impl UnwindSafe for PortStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)