pub enum ErrorCode {
InvalidInput,
InvalidResource,
ResourceBusy,
ResourceUnavailable,
}
Expand description
Error handling codes.
Suggests to the caller how an error could be handled.
Variants§
InvalidInput
An input to the function is invalid.
InvalidResource
A resource required by the function is invalid.
ResourceBusy
A resource required by the function isn’t currently available, but it could be in the future.
A resource required by the function isn’t available.
Trait Implementations§
Source§impl ErrorWithCode<ErrorCode> for StackError
impl ErrorWithCode<ErrorCode> for StackError
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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