pub enum StarryError {
Show 58 variants
Errno(Errno),
Vm(VmError),
Signal(SignalError),
Mm(MmError),
Vfs(VfsError),
Mapping(MappingError),
Paging(PagingError),
TlbShootdown(TlbShootdownError),
Alloc(AllocError),
Cgroup(CgroupError),
IoDomain(IoError),
Net(NetError),
Task(TaskError),
Runtime(RuntimeError),
Block(BlockError),
Driver(Error),
Format(Error),
Dma {
operation: DmaOperation,
source: DmaError,
},
AlreadyExists,
ArgumentListTooLong,
BadAddress,
BadFileDescriptor,
BadState,
BrokenPipe,
CrossesDevices,
FilesystemLoop,
IllegalBytes,
InProgress,
Interrupted,
InterruptedNoRestart,
InvalidData,
InvalidExecutable,
MalformedExecutable,
InvalidInput,
Io,
IsADirectory,
NameTooLong,
NoMemory,
NoSuchDevice,
NoSuchDeviceOrAddress,
NoSuchProcess,
NotADirectory,
NotASocket,
NotATty,
NotFound,
OperationNotPermitted,
OperationNotSupported,
OutOfRange,
PermissionDenied,
ReadOnlyFilesystem,
ResourceBusy,
StorageFull,
TimedOut,
TooManyOpenFiles,
UnexpectedEof,
Unsupported,
WouldBlock,
WriteZero,
}Expand description
Errors owned by the Starry kernel below the Linux syscall ABI boundary.
Variants§
Errno(Errno)
Vm(VmError)
Signal(SignalError)
Mm(MmError)
Vfs(VfsError)
Mapping(MappingError)
Paging(PagingError)
TlbShootdown(TlbShootdownError)
A pending address-space TLB quarantine could not be confirmed before the requested operation began.
Alloc(AllocError)
Cgroup(CgroupError)
IoDomain(IoError)
Net(NetError)
Task(TaskError)
Runtime(RuntimeError)
Block(BlockError)
Driver(Error)
Format(Error)
Dma
AlreadyExists
ArgumentListTooLong
BadAddress
BadFileDescriptor
BadState
BrokenPipe
CrossesDevices
FilesystemLoop
IllegalBytes
InProgress
Interrupted
InterruptedNoRestart
An interrupted operation that Linux exposes as EINTR even when the delivered handler uses SA_RESTART, such as socket I/O with SO_*TIMEO.
InvalidData
InvalidExecutable
MalformedExecutable
InvalidInput
Io
IsADirectory
NameTooLong
NoMemory
NoSuchDevice
NoSuchDeviceOrAddress
NoSuchProcess
NotADirectory
NotASocket
NotATty
NotFound
OperationNotPermitted
OperationNotSupported
OutOfRange
PermissionDenied
ReadOnlyFilesystem
ResourceBusy
StorageFull
TimedOut
TooManyOpenFiles
UnexpectedEof
Unsupported
WouldBlock
WriteZero
Implementations§
Source§impl StarryError
impl StarryError
Sourcepub fn linux_errno(&self) -> Errno
pub fn linux_errno(&self) -> Errno
Convert an internal domain failure to its Linux syscall ABI errno.
Trait Implementations§
Source§impl Debug for StarryError
impl Debug for StarryError
Source§impl Display for StarryError
impl Display for StarryError
Source§impl Error for StarryError
impl Error for StarryError
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()
Source§impl From<AllocError> for StarryError
impl From<AllocError> for StarryError
Source§fn from(source: AllocError) -> Self
fn from(source: AllocError) -> Self
Converts to this type from the input type.
Source§impl From<BlockError> for StarryError
impl From<BlockError> for StarryError
Source§fn from(source: BlockError) -> Self
fn from(source: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<CgroupError> for StarryError
impl From<CgroupError> for StarryError
Source§fn from(source: CgroupError) -> Self
fn from(source: CgroupError) -> Self
Converts to this type from the input type.
Source§impl From<Errno> for StarryError
impl From<Errno> for StarryError
Source§impl From<Error> for StarryError
impl From<Error> for StarryError
Source§impl From<Error> for StarryError
impl From<Error> for StarryError
Source§impl From<IoError> for StarryError
impl From<IoError> for StarryError
Source§impl From<MappingError> for StarryError
impl From<MappingError> for StarryError
Source§fn from(source: MappingError) -> Self
fn from(source: MappingError) -> Self
Converts to this type from the input type.
Source§impl From<MmError> for StarryError
impl From<MmError> for StarryError
Source§impl From<NetError> for StarryError
impl From<NetError> for StarryError
Source§impl From<PagingError> for StarryError
impl From<PagingError> for StarryError
Source§fn from(source: PagingError) -> Self
fn from(source: PagingError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for StarryError
impl From<RuntimeError> for StarryError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<SignalError> for StarryError
impl From<SignalError> for StarryError
Source§fn from(source: SignalError) -> Self
fn from(source: SignalError) -> Self
Converts to this type from the input type.
Source§impl From<StarryError> for VfsError
impl From<StarryError> for VfsError
Source§fn from(error: StarryError) -> Self
fn from(error: StarryError) -> Self
Converts to this type from the input type.
Source§impl From<TaskError> for StarryError
impl From<TaskError> for StarryError
Source§impl From<TlbShootdownError> for StarryError
impl From<TlbShootdownError> for StarryError
Source§fn from(source: TlbShootdownError) -> Self
fn from(source: TlbShootdownError) -> Self
Converts to this type from the input type.
Source§impl From<VfsError> for StarryError
impl From<VfsError> for StarryError
Auto Trait Implementations§
impl !RefUnwindSafe for StarryError
impl !UnwindSafe for StarryError
impl Freeze for StarryError
impl Send for StarryError
impl Sync for StarryError
impl Unpin for StarryError
impl UnsafeUnpin for StarryError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DirectoryReadState for T
impl<T> DirectoryReadState for T
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more