pub enum DiskTrayState {
Closed,
Ejected,
}Variants§
Implementations§
Source§impl DiskTrayState
impl DiskTrayState
pub const fn from_ejected(ejected: bool) -> Self
pub const fn is_ejected(self) -> bool
Trait Implementations§
Source§impl Clone for DiskTrayState
impl Clone for DiskTrayState
Source§fn clone(&self) -> DiskTrayState
fn clone(&self) -> DiskTrayState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiskTrayState
impl Debug for DiskTrayState
Source§impl Default for DiskTrayState
impl Default for DiskTrayState
Source§fn default() -> DiskTrayState
fn default() -> DiskTrayState
Returns the “default value” for a type. Read more
Source§impl Hash for DiskTrayState
impl Hash for DiskTrayState
Source§impl PartialEq for DiskTrayState
impl PartialEq for DiskTrayState
Source§fn eq(&self, other: &DiskTrayState) -> bool
fn eq(&self, other: &DiskTrayState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DiskTrayState
impl Eq for DiskTrayState
impl StructuralPartialEq for DiskTrayState
Auto Trait Implementations§
impl Freeze for DiskTrayState
impl RefUnwindSafe for DiskTrayState
impl Send for DiskTrayState
impl Sync for DiskTrayState
impl Unpin for DiskTrayState
impl UnsafeUnpin for DiskTrayState
impl UnwindSafe for DiskTrayState
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