#[repr(transparent)]pub struct MasterSlave(pub u8);
Expand description
Whether the ATAPI device is master or slave.
Tuple Fields§
§0: u8
Implementations§
source§impl MasterSlave
impl MasterSlave
sourcepub const MASTER: MasterSlave = _
pub const MASTER: MasterSlave = _
Master mode.
sourcepub const SLAVE: MasterSlave = _
pub const SLAVE: MasterSlave = _
Slave mode.
Trait Implementations§
source§impl Clone for MasterSlave
impl Clone for MasterSlave
source§fn clone(&self) -> MasterSlave
fn clone(&self) -> MasterSlave
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 MasterSlave
impl Debug for MasterSlave
source§impl Hash for MasterSlave
impl Hash for MasterSlave
source§impl Ord for MasterSlave
impl Ord for MasterSlave
source§fn cmp(&self, other: &MasterSlave) -> Ordering
fn cmp(&self, other: &MasterSlave) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MasterSlave
impl PartialEq for MasterSlave
source§impl PartialOrd for MasterSlave
impl PartialOrd for MasterSlave
impl Copy for MasterSlave
impl Eq for MasterSlave
impl StructuralPartialEq for MasterSlave
Auto Trait Implementations§
impl Freeze for MasterSlave
impl RefUnwindSafe for MasterSlave
impl Send for MasterSlave
impl Sync for MasterSlave
impl Unpin for MasterSlave
impl UnwindSafe for MasterSlave
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)