pub enum Role {
Host,
Device,
Idle,
}Expand description
Defines the role of a participant in a PK Command transaction.
This is used internally by the state machine to manage transaction flow and usually should not be used directly.
Variants§
Host
The initiator of the transaction.
Device
The receiver and executor of the transaction.
Idle
Indicates that no transaction is active, and thus no specific role is assigned.
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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