pub struct DeviceImplInfo {Show 13 fields
pub device_features: Option<u32>,
pub tx_depth: Option<u16>,
pub rx_depth: Option<u16>,
pub rx_threshold: Option<u16>,
pub max_buffer_parts: Option<u8>,
pub max_buffer_length: Option<u32>,
pub buffer_alignment: Option<u32>,
pub min_rx_buffer_length: Option<u32>,
pub min_tx_buffer_length: Option<u32>,
pub tx_head_length: Option<u16>,
pub tx_tail_length: Option<u16>,
pub min_rx_buffers: Option<u16>,
pub rx_buffer_management: Option<RxBufferManagement>,
}Expand description
Static device information.
DeviceImplInfo must not change for the entire lifetime of a device.
Fields§
§device_features: Option<u32>§tx_depth: Option<u16>§rx_depth: Option<u16>§rx_threshold: Option<u16>§max_buffer_parts: Option<u8>§max_buffer_length: Option<u32>§buffer_alignment: Option<u32>§min_rx_buffer_length: Option<u32>§min_tx_buffer_length: Option<u32>§tx_head_length: Option<u16>§tx_tail_length: Option<u16>§min_rx_buffers: Option<u16>§rx_buffer_management: Option<RxBufferManagement>Trait Implementations§
Source§impl Clone for DeviceImplInfo
impl Clone for DeviceImplInfo
Source§fn clone(&self) -> DeviceImplInfo
fn clone(&self) -> DeviceImplInfo
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 moreimpl Copy for DeviceImplInfo
Source§impl Debug for DeviceImplInfo
impl Debug for DeviceImplInfo
Source§impl Default for DeviceImplInfo
impl Default for DeviceImplInfo
Source§fn default() -> DeviceImplInfo
fn default() -> DeviceImplInfo
Returns the “default value” for a type. Read more
Source§impl<___E> Encode<DeviceImplInfo<'static>, ___E> for DeviceImplInfowhere
___E: Encoder + ?Sized,
impl<___E> Encode<DeviceImplInfo<'static>, ___E> for DeviceImplInfowhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<DeviceImplInfo<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<DeviceImplInfo<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'a, ___E> Encode<DeviceImplInfo<'static>, ___E> for &'a DeviceImplInfowhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<DeviceImplInfo<'static>, ___E> for &'a DeviceImplInfowhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<DeviceImplInfo<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<DeviceImplInfo<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<DeviceImplInfo<'de>> for DeviceImplInfo
impl<'de> FromWire<DeviceImplInfo<'de>> for DeviceImplInfo
Source§fn from_wire(wire_: DeviceImplInfo<'de>) -> DeviceImplInfo
fn from_wire(wire_: DeviceImplInfo<'de>) -> DeviceImplInfo
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<DeviceImplInfo<'de>> for DeviceImplInfo
impl<'de> FromWireRef<DeviceImplInfo<'de>> for DeviceImplInfo
Source§fn from_wire_ref(wire: &DeviceImplInfo<'de>) -> DeviceImplInfo
fn from_wire_ref(wire: &DeviceImplInfo<'de>) -> DeviceImplInfo
Converts the given reference to this type.
Source§impl PartialEq for DeviceImplInfo
impl PartialEq for DeviceImplInfo
Source§impl PartialOrd for DeviceImplInfo
impl PartialOrd for DeviceImplInfo
impl StructuralPartialEq for DeviceImplInfo
Auto Trait Implementations§
impl Freeze for DeviceImplInfo
impl RefUnwindSafe for DeviceImplInfo
impl Send for DeviceImplInfo
impl Sync for DeviceImplInfo
impl Unpin for DeviceImplInfo
impl UnsafeUnpin for DeviceImplInfo
impl UnwindSafe for DeviceImplInfo
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]