pub enum UnSupportedReasons {
Value,
Type,
Block,
Lock,
UnAccessible,
Auth,
IO,
FileNotFound,
Interrupted,
ClassCast,
Other,
}
Variants§
Value
Illegal value such as : a param need u32 , but get value < 0 or None(Option) or bigger than u32::MAX_VALUE
Type
Illegal type such as : a param need u32 , but get bool
Block
thread block
Lock
cannot get lock
UnAccessible
cannot access
Auth
No permission to access
IO
IO
FileNotFound
file not found
Interrupted
interrupt when thread waiting or sleeping
ClassCast
conert error
Other
other reason specific reasons need to be set on msg param
Trait Implementations§
Source§impl Clone for UnSupportedReasons
impl Clone for UnSupportedReasons
Source§fn clone(&self) -> UnSupportedReasons
fn clone(&self) -> UnSupportedReasons
Returns a duplicate 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 UnSupportedReasons
impl Debug for UnSupportedReasons
Source§impl PartialEq for UnSupportedReasons
impl PartialEq for UnSupportedReasons
impl StructuralPartialEq for UnSupportedReasons
Auto Trait Implementations§
impl Freeze for UnSupportedReasons
impl RefUnwindSafe for UnSupportedReasons
impl Send for UnSupportedReasons
impl Sync for UnSupportedReasons
impl Unpin for UnSupportedReasons
impl UnwindSafe for UnSupportedReasons
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