#[non_exhaustive]pub enum InitiatorMode {
Disabled,
Enabled,
Exclusive,
}Expand description
An mode specifying how a given Device should act as
an initiator; that is, if the device should be able to send messages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disabled
Do not act as an initiator.
Enabled
Act as an initiator.
Exclusive
Act as an initiator and disallow other processes acting as an initiator while the device is open.
Trait Implementations§
Source§impl Clone for InitiatorMode
impl Clone for InitiatorMode
Source§fn clone(&self) -> InitiatorMode
fn clone(&self) -> InitiatorMode
Returns a duplicate 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 InitiatorMode
impl Debug for InitiatorMode
Source§impl Hash for InitiatorMode
impl Hash for InitiatorMode
Source§impl PartialEq for InitiatorMode
impl PartialEq for InitiatorMode
impl Copy for InitiatorMode
impl Eq for InitiatorMode
impl StructuralPartialEq for InitiatorMode
Auto Trait Implementations§
impl Freeze for InitiatorMode
impl RefUnwindSafe for InitiatorMode
impl Send for InitiatorMode
impl Sync for InitiatorMode
impl Unpin for InitiatorMode
impl UnsafeUnpin for InitiatorMode
impl UnwindSafe for InitiatorMode
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