#[repr(u16)]pub enum ResourceError {
OutOfMemory = 1,
OutOfResources = 2,
OutOfNames = 3,
Unavailable = 4,
Refused = 8,
Busy = 5,
NotConnected = 6,
Unreachable = 7,
NonAtomic = 9,
}
Variants§
OutOfMemory = 1
OutOfResources = 2
OutOfNames = 3
Refused = 8
Busy = 5
NotConnected = 6
Unreachable = 7
NonAtomic = 9
Trait Implementations§
Source§impl Clone for ResourceError
impl Clone for ResourceError
Source§fn clone(&self) -> ResourceError
fn clone(&self) -> ResourceError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResourceError
impl Debug for ResourceError
Source§impl Display for ResourceError
impl Display for ResourceError
Source§impl Error for ResourceError
impl Error for ResourceError
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()
Source§impl From<ResourceError> for TwzError
impl From<ResourceError> for TwzError
Source§fn from(value: ResourceError) -> Self
fn from(value: ResourceError) -> Self
Converts to this type from the input type.
Source§impl Hash for ResourceError
impl Hash for ResourceError
Source§impl Ord for ResourceError
impl Ord for ResourceError
Source§fn cmp(&self, other: &ResourceError) -> Ordering
fn cmp(&self, other: &ResourceError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResourceError
impl PartialEq for ResourceError
Source§impl PartialOrd for ResourceError
impl PartialOrd for ResourceError
impl Copy for ResourceError
impl Eq for ResourceError
impl StructuralPartialEq for ResourceError
Auto Trait Implementations§
impl Freeze for ResourceError
impl RefUnwindSafe for ResourceError
impl Send for ResourceError
impl Sync for ResourceError
impl Unpin for ResourceError
impl UnwindSafe for ResourceError
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