pub enum ResourceTableError {
Full,
NotPresent,
WrongType,
HasChildren,
}
Expand description
Errors returned by operations on ResourceTable
Variants§
Full
ResourceTable has no free keys
NotPresent
Resource not present in table
WrongType
Resource present in table, but with a different type
HasChildren
Resource cannot be deleted because child resources exist in the table. Consult wit docs for the particular resource to see which methods may return child resources.
Trait Implementations§
source§impl Debug for ResourceTableError
impl Debug for ResourceTableError
source§impl Display for ResourceTableError
impl Display for ResourceTableError
source§impl Error for ResourceTableError
impl Error for ResourceTableError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ResourceTableError> for Error
impl From<ResourceTableError> for Error
source§fn from(err: ResourceTableError) -> Self
fn from(err: ResourceTableError) -> Self
Converts to this type from the input type.
source§impl From<ResourceTableError> for StreamError
impl From<ResourceTableError> for StreamError
source§fn from(error: ResourceTableError) -> Self
fn from(error: ResourceTableError) -> Self
Converts to this type from the input type.
source§impl From<ResourceTableError> for FsError
impl From<ResourceTableError> for FsError
source§fn from(error: ResourceTableError) -> Self
fn from(error: ResourceTableError) -> Self
Converts to this type from the input type.
source§impl From<ResourceTableError> for SocketError
impl From<ResourceTableError> for SocketError
source§fn from(error: ResourceTableError) -> Self
fn from(error: ResourceTableError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResourceTableError
impl RefUnwindSafe for ResourceTableError
impl Send for ResourceTableError
impl Sync for ResourceTableError
impl Unpin for ResourceTableError
impl UnwindSafe for ResourceTableError
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read more