Enum kernel::fs::FileSystemError
source · pub enum FileSystemError {
Show 17 variants
PartitionTableNotFound,
DeviceNotFound,
DiskReadError {
sector: u64,
error: IdeError,
},
FatError(FatError),
FileNotFound,
InvalidPath,
MustBeAbsolute,
IsNotDirectory,
IsDirectory,
ReadNotSupported,
WriteNotSupported,
OperationNotSupported,
CouldNotSetFileLength,
EndOfFile,
BufferNotLargeEnough(usize),
AlreadyExists,
MappingError(MappingError),
}
Variants§
PartitionTableNotFound
DeviceNotFound
DiskReadError
FatError(FatError)
FileNotFound
InvalidPath
MustBeAbsolute
IsNotDirectory
IsDirectory
ReadNotSupported
WriteNotSupported
OperationNotSupported
CouldNotSetFileLength
EndOfFile
BufferNotLargeEnough(usize)
AlreadyExists
MappingError(MappingError)
Trait Implementations§
source§impl Debug for FileSystemError
impl Debug for FileSystemError
source§impl From<FatError> for FileSystemError
impl From<FatError> for FileSystemError
source§impl From<FileSystemError> for ElfLoadError
impl From<FileSystemError> for ElfLoadError
source§fn from(e: FileSystemError) -> Self
fn from(e: FileSystemError) -> Self
Converts to this type from the input type.
source§impl From<FileSystemError> for ProcessError
impl From<FileSystemError> for ProcessError
source§fn from(e: FileSystemError) -> Self
fn from(e: FileSystemError) -> Self
Converts to this type from the input type.
source§impl From<FileSystemError> for SyscallError
impl From<FileSystemError> for SyscallError
source§fn from(e: FileSystemError) -> Self
fn from(e: FileSystemError) -> Self
Converts to this type from the input type.
source§impl From<MappingError> for FileSystemError
impl From<MappingError> for FileSystemError
source§fn from(value: MappingError) -> Self
fn from(value: MappingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FileSystemError
impl Send for FileSystemError
impl Sync for FileSystemError
impl Unpin for FileSystemError
impl UnwindSafe for FileSystemError
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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.