pub struct VsockHealth {
pub status: Option<FunctionStatus>,
pub active_channels: Option<u32>,
pub details: Option<String>,
pub online: Option<bool>,
pub driver_state: Option<String>,
/* private fields */
}Expand description
Health information for the USB VSOCK function subsystem.
Fields§
§status: Option<FunctionStatus>Describes the high-level policy and configuration state of the VSOCK function.
active_channels: Option<u32>The number of currently active or open multiplexed VSOCK socket channels. If unknown or unsupported by the function driver, this field is absent (None).
details: Option<String>Provides additional diagnostic details or state description.
online: Option<bool>Indicates whether the underlying VSOCK transport driver is actively online and ready for traffic.
In contrast to status == CONNECTED (which indicates the USB function is configured on the bus),
online indicates that the VSOCK service is bound and ready to accept connections.
driver_state: Option<String>Describes the runtime execution state reported by the VSOCK function driver (e.g. “Unconfigured”, “Running”).
Trait Implementations§
Source§impl Clone for VsockHealth
impl Clone for VsockHealth
Source§fn clone(&self) -> VsockHealth
fn clone(&self) -> VsockHealth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VsockHealth
impl Debug for VsockHealth
Source§impl<D: ResourceDialect> Decode<VsockHealth, D> for VsockHealth
impl<D: ResourceDialect> Decode<VsockHealth, D> for VsockHealth
Source§impl Default for VsockHealth
impl Default for VsockHealth
Source§fn default() -> VsockHealth
fn default() -> VsockHealth
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<VsockHealth, D> for &VsockHealth
impl<D: ResourceDialect> Encode<VsockHealth, D> for &VsockHealth
Source§impl PartialEq for VsockHealth
impl PartialEq for VsockHealth
impl Persistable for VsockHealth
impl StructuralPartialEq for VsockHealth
Source§impl TypeMarker for VsockHealth
impl TypeMarker for VsockHealth
Source§type Owned = VsockHealth
type Owned = VsockHealth
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.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 VsockHealth
impl ValueTypeMarker for VsockHealth
Source§type Borrowed<'a> = &'a VsockHealth
type Borrowed<'a> = &'a VsockHealth
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreAuto Trait Implementations§
impl Freeze for VsockHealth
impl RefUnwindSafe for VsockHealth
impl Send for VsockHealth
impl Sync for VsockHealth
impl Unpin for VsockHealth
impl UnsafeUnpin for VsockHealth
impl UnwindSafe for VsockHealth
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