pub struct DefaultDevice {
pub selector: String,
pub name: Option<String>,
}Expand description
The device to reach for when the command line names none.
Both fields are kept: the platform id is the primary key, and the name is a fallback for the day a Bluetooth cache reset churns the ids — as well as what the user recognizes in a message.
Fields§
§selector: String§name: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for DefaultDevice
impl Clone for DefaultDevice
Source§fn clone(&self) -> DefaultDevice
fn clone(&self) -> DefaultDevice
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultDevice
impl Debug for DefaultDevice
Source§impl Default for DefaultDevice
impl Default for DefaultDevice
Source§fn default() -> DefaultDevice
fn default() -> DefaultDevice
Returns the “default value” for a type. Read more
Source§impl PartialEq for DefaultDevice
impl PartialEq for DefaultDevice
impl Eq for DefaultDevice
impl StructuralPartialEq for DefaultDevice
Auto Trait Implementations§
impl Freeze for DefaultDevice
impl RefUnwindSafe for DefaultDevice
impl Send for DefaultDevice
impl Sync for DefaultDevice
impl Unpin for DefaultDevice
impl UnwindSafe for DefaultDevice
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)