pub struct V1DeviceInfo {
pub topological_path: Option<String>,
pub bound_driver_libname: Option<String>,
pub property_list: Option<DevicePropertyList>,
pub flags: Option<DeviceFlags>,
pub protocol_id: Option<u32>,
pub protocol_name: Option<String>,
/* private fields */
}
Fields§
§topological_path: Option<String>
The topological path of the driver.
bound_driver_libname: Option<String>
Path to the driver shared library.
property_list: Option<DevicePropertyList>
Properties of the device.
flags: Option<DeviceFlags>
Tracks the state of the device.
protocol_id: Option<u32>
Banjo protocol ID
protocol_name: Option<String>
Banjo protocol name
Trait Implementations§
source§impl Clone for V1DeviceInfo
impl Clone for V1DeviceInfo
source§fn clone(&self) -> V1DeviceInfo
fn clone(&self) -> V1DeviceInfo
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 V1DeviceInfo
impl Debug for V1DeviceInfo
source§impl Decode<V1DeviceInfo> for V1DeviceInfo
impl Decode<V1DeviceInfo> for V1DeviceInfo
source§impl Default for V1DeviceInfo
impl Default for V1DeviceInfo
source§fn default() -> V1DeviceInfo
fn default() -> V1DeviceInfo
Returns the “default value” for a type. Read more
source§impl Encode<V1DeviceInfo> for &V1DeviceInfo
impl Encode<V1DeviceInfo> for &V1DeviceInfo
source§impl PartialEq for V1DeviceInfo
impl PartialEq for V1DeviceInfo
source§fn eq(&self, other: &V1DeviceInfo) -> bool
fn eq(&self, other: &V1DeviceInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for V1DeviceInfo
impl TypeMarker for V1DeviceInfo
§type Owned = V1DeviceInfo
type Owned = V1DeviceInfo
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 V1DeviceInfo
impl ValueTypeMarker for V1DeviceInfo
§type Borrowed<'a> = &'a V1DeviceInfo
type Borrowed<'a> = &'a V1DeviceInfo
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 V1DeviceInfo
impl StructuralPartialEq for V1DeviceInfo
Auto Trait Implementations§
impl Freeze for V1DeviceInfo
impl RefUnwindSafe for V1DeviceInfo
impl Send for V1DeviceInfo
impl Sync for V1DeviceInfo
impl Unpin for V1DeviceInfo
impl UnwindSafe for V1DeviceInfo
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