pub struct AddDeviceArgs {
pub name: String,
pub protocol_id: u32,
pub property_list: DevicePropertyList,
pub driver_path: Option<String>,
pub args: Option<String>,
pub device_add_config: AddDeviceConfig,
pub has_init: bool,
pub dfv2_device_symbol: u64,
}
Expand description
This struct holds non-resource arguments for creating a new device with the Coordinator.
Fields§
§name: String
The device name, used for debugging.
protocol_id: u32
The protocol id, used for binding.
property_list: DevicePropertyList
The property list of the device, used for binding.
driver_path: Option<String>
The driver path, used for debugging.
args: Option<String>
This should be used only for shadowed device. This will be forwarded to the shadowed device.
device_add_config: AddDeviceConfig
§has_init: bool
§dfv2_device_symbol: u64
An address pointing to the DFv2 device symbol, which contains its banjo ops. This exists on every DFv1 device, but it is only used by a DFv2 child.
Trait Implementations§
source§impl Clone for AddDeviceArgs
impl Clone for AddDeviceArgs
source§fn clone(&self) -> AddDeviceArgs
fn clone(&self) -> AddDeviceArgs
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 AddDeviceArgs
impl Debug for AddDeviceArgs
source§impl Decode<AddDeviceArgs> for AddDeviceArgs
impl Decode<AddDeviceArgs> for AddDeviceArgs
source§impl Encode<AddDeviceArgs> for &AddDeviceArgs
impl Encode<AddDeviceArgs> for &AddDeviceArgs
source§impl<T0: Encode<BoundedString<31>>, T1: Encode<u32>, T2: Encode<DevicePropertyList>, T3: Encode<Optional<BoundedString<1024>>>, T4: Encode<Optional<BoundedString<1024>>>, T5: Encode<AddDeviceConfig>, T6: Encode<bool>, T7: Encode<u64>> Encode<AddDeviceArgs> for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<T0: Encode<BoundedString<31>>, T1: Encode<u32>, T2: Encode<DevicePropertyList>, T3: Encode<Optional<BoundedString<1024>>>, T4: Encode<Optional<BoundedString<1024>>>, T5: Encode<AddDeviceConfig>, T6: Encode<bool>, T7: Encode<u64>> Encode<AddDeviceArgs> for (T0, T1, T2, T3, T4, T5, T6, T7)
source§impl Hash for AddDeviceArgs
impl Hash for AddDeviceArgs
source§impl Ord for AddDeviceArgs
impl Ord for AddDeviceArgs
source§fn cmp(&self, other: &AddDeviceArgs) -> Ordering
fn cmp(&self, other: &AddDeviceArgs) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AddDeviceArgs> for AddDeviceArgs
impl PartialEq<AddDeviceArgs> for AddDeviceArgs
source§fn eq(&self, other: &AddDeviceArgs) -> bool
fn eq(&self, other: &AddDeviceArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AddDeviceArgs> for AddDeviceArgs
impl PartialOrd<AddDeviceArgs> for AddDeviceArgs
source§fn partial_cmp(&self, other: &AddDeviceArgs) -> Option<Ordering>
fn partial_cmp(&self, other: &AddDeviceArgs) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for AddDeviceArgs
impl TypeMarker for AddDeviceArgs
§type Owned = AddDeviceArgs
type Owned = AddDeviceArgs
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 AddDeviceArgs
impl ValueTypeMarker for AddDeviceArgs
§type Borrowed<'a> = &'a AddDeviceArgs
type Borrowed<'a> = &'a AddDeviceArgs
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 Eq for AddDeviceArgs
impl Persistable for AddDeviceArgs
impl StructuralEq for AddDeviceArgs
impl StructuralPartialEq for AddDeviceArgs
Auto Trait Implementations§
impl RefUnwindSafe for AddDeviceArgs
impl Send for AddDeviceArgs
impl Sync for AddDeviceArgs
impl Unpin for AddDeviceArgs
impl UnwindSafe for AddDeviceArgs
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