Enum DeviceError

Source
pub enum DeviceError {
Show 26 variants Timeout, NotAFile, NotFound, EndOfFile, NotReadable, NotWritable, UnexpectedEoF, NotADirectory, NonEmptyDirectory, Read, Write, BadData, NoSpace, Hardware(u8), Overflow, InvalidIndex, InvalidOptions, NameTooLong, InvalidChain, InvalidVolume, InvalidCluster, InvalidChecksum, InvalidPartition, InvalidFileSystem, UnsupportedVolume(u8), UnsupportedFileSystem,
}

Variants§

§

Timeout

§

NotAFile

§

NotFound

§

EndOfFile

§

NotReadable

§

NotWritable

§

UnexpectedEoF

§

NotADirectory

§

NonEmptyDirectory

§

Read

§

Write

§

BadData

§

NoSpace

§

Hardware(u8)

§

Overflow

§

InvalidIndex

§

InvalidOptions

§

NameTooLong

§

InvalidChain

§

InvalidVolume

§

InvalidCluster

§

InvalidChecksum

§

InvalidPartition

§

InvalidFileSystem

§

UnsupportedVolume(u8)

§

UnsupportedFileSystem

Trait Implementations§

Source§

impl Debug for DeviceError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<CardError> for DeviceError

Source§

fn from(v: CardError) -> DeviceError

Converts to this type from the input type.
Source§

impl From<DeviceError> for Error

Source§

fn from(v: DeviceError) -> Error

Converts to this type from the input type.
Source§

impl From<DeviceError> for ImageError

Source§

fn from(v: DeviceError) -> ImageError

Converts to this type from the input type.
Source§

impl<B: BlockDevice, S: FileSync> Read<DeviceError> for File<'_, B, S>

Source§

fn read(&mut self, b: &mut [u8]) -> Result<usize, Error>

Source§

fn read_exact(&mut self, b: &mut [u8]) -> Result<(), Error<E>>

Source§

impl<B: BlockDevice> Read<DeviceError> for Reader<'_, B>

Source§

fn read(&mut self, b: &mut [u8]) -> Result<usize, Error>

Source§

fn read_exact(&mut self, b: &mut [u8]) -> Result<(), Error<E>>

Source§

impl<B: BlockDevice, S: FileSync> Seek<DeviceError> for File<'_, B, S>

Source§

fn seek(&mut self, s: SeekFrom) -> Result<u64, Error>

Source§

fn rewind(&mut self) -> Result<(), Error<E>>

Source§

fn stream_position(&mut self) -> Result<u64, Error<E>>

Source§

impl<B: BlockDevice> Seek<DeviceError> for Reader<'_, B>

Source§

fn seek(&mut self, s: SeekFrom) -> Result<u64, Error>

Source§

fn rewind(&mut self) -> Result<(), Error<E>>

Source§

fn stream_position(&mut self) -> Result<u64, Error<E>>

Source§

impl<B: BlockDevice, S: FileSync> Write<DeviceError> for File<'_, B, S>

Source§

fn flush(&mut self) -> Result<(), Error>

Source§

fn write(&mut self, b: &[u8]) -> Result<usize, Error>

Source§

fn write_all(&mut self, b: &[u8]) -> Result<(), Error<E>>

Source§

fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.