#[repr(u8)]pub enum Code {
Unknown = 0,
InvalidArgument = 1,
NotFound = 2,
Internal = 3,
Reserved(u8),
}Expand description
Code represents a error code.
Variants§
Unknown = 0
Unknown error.
InvalidArgument = 1
Invalid argument, such as an invalid task ID or piece number.
NotFound = 2
Resource not found, such as a missing piece.
Internal = 3
Internal error, such as an unexpected error.
Reserved(u8)
Reserved for future use.
Trait Implementations§
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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