Enum VolumeNameError
#[non_exhaustive]pub enum VolumeNameError {
Empty,
TooLong(usize),
Nul,
}Expand description
Volume name that the kernel rejects.
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.
Empty
The name is empty.
TooLong(usize)
The name has more bytes than crate::VolumeName::MAX_LEN.
Nul
The name contains a NUL byte.
Trait Implementations§
§impl Clone for VolumeNameError
impl Clone for VolumeNameError
§fn clone(&self) -> VolumeNameError
fn clone(&self) -> VolumeNameError
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 moreimpl Copy for VolumeNameError
§impl Debug for VolumeNameError
impl Debug for VolumeNameError
§impl Display for VolumeNameError
impl Display for VolumeNameError
impl Eq for VolumeNameError
§impl Error for VolumeNameError
impl Error for VolumeNameError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl PartialEq for VolumeNameError
impl PartialEq for VolumeNameError
impl StructuralPartialEq for VolumeNameError
Auto Trait Implementations§
impl Freeze for VolumeNameError
impl RefUnwindSafe for VolumeNameError
impl Send for VolumeNameError
impl Sync for VolumeNameError
impl Unpin for VolumeNameError
impl UnsafeUnpin for VolumeNameError
impl UnwindSafe for VolumeNameError
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