Struct ironoxide::user::DeviceCreateOpts
source · pub struct DeviceCreateOpts { /* private fields */ }
Expand description
Options for device creation.
Default values are provided with DeviceCreateOpts::default()
Implementations§
source§impl DeviceCreateOpts
impl DeviceCreateOpts
sourcepub fn new(device_name: Option<DeviceName>) -> DeviceCreateOpts
pub fn new(device_name: Option<DeviceName>) -> DeviceCreateOpts
Arguments
- device_name
None
(default) - The device will be created with no name.Some
- The provided name will be used as the device’s name.
Trait Implementations§
source§impl Clone for DeviceCreateOpts
impl Clone for DeviceCreateOpts
source§fn clone(&self) -> DeviceCreateOpts
fn clone(&self) -> DeviceCreateOpts
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 DeviceCreateOpts
impl Debug for DeviceCreateOpts
source§impl Default for DeviceCreateOpts
impl Default for DeviceCreateOpts
source§impl Hash for DeviceCreateOpts
impl Hash for DeviceCreateOpts
source§impl PartialEq for DeviceCreateOpts
impl PartialEq for DeviceCreateOpts
source§fn eq(&self, other: &DeviceCreateOpts) -> bool
fn eq(&self, other: &DeviceCreateOpts) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DeviceCreateOpts
impl StructuralEq for DeviceCreateOpts
impl StructuralPartialEq for DeviceCreateOpts
Auto Trait Implementations§
impl RefUnwindSafe for DeviceCreateOpts
impl Send for DeviceCreateOpts
impl Sync for DeviceCreateOpts
impl Unpin for DeviceCreateOpts
impl UnwindSafe for DeviceCreateOpts
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere T: Default,
§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more