pub struct DeviceAttachSpec {
pub id: String,
pub port_path: String,
pub baud_rate: u32,
pub native_usb: bool,
pub mac: Option<String>,
pub recovery_cycles: u32,
pub fault: Option<String>,
}Expand description
Specification for attaching one ESP32 device to the registry.
Fields§
§id: String§port_path: String§baud_rate: u32§native_usb: bool§mac: Option<String>§recovery_cycles: u32Carried across handle respawns when a native-USB board re-enumerates.
fault: Option<String>Declared fault from a prior connection attempt, if any.
Trait Implementations§
Source§impl Clone for DeviceAttachSpec
impl Clone for DeviceAttachSpec
Source§fn clone(&self) -> DeviceAttachSpec
fn clone(&self) -> DeviceAttachSpec
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 DeviceAttachSpec
impl Debug for DeviceAttachSpec
Auto Trait Implementations§
impl Freeze for DeviceAttachSpec
impl RefUnwindSafe for DeviceAttachSpec
impl Send for DeviceAttachSpec
impl Sync for DeviceAttachSpec
impl Unpin for DeviceAttachSpec
impl UnsafeUnpin for DeviceAttachSpec
impl UnwindSafe for DeviceAttachSpec
Blanket Implementations§
impl<T> Allocation for T
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