pub struct ZeroIsInvalidRejectCode;
Expand description
Error type for RejectCode
conversion.
The only case where this error can occur is when trying to convert a 0 to a RejectCode
.
Trait Implementations§
Source§impl Clone for ZeroIsInvalidRejectCode
impl Clone for ZeroIsInvalidRejectCode
Source§fn clone(&self) -> ZeroIsInvalidRejectCode
fn clone(&self) -> ZeroIsInvalidRejectCode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ZeroIsInvalidRejectCode
impl Debug for ZeroIsInvalidRejectCode
Source§impl Display for ZeroIsInvalidRejectCode
impl Display for ZeroIsInvalidRejectCode
Source§impl Error for ZeroIsInvalidRejectCode
impl Error for ZeroIsInvalidRejectCode
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()
impl Copy for ZeroIsInvalidRejectCode
Auto Trait Implementations§
impl Freeze for ZeroIsInvalidRejectCode
impl RefUnwindSafe for ZeroIsInvalidRejectCode
impl Send for ZeroIsInvalidRejectCode
impl Sync for ZeroIsInvalidRejectCode
impl Unpin for ZeroIsInvalidRejectCode
impl UnwindSafe for ZeroIsInvalidRejectCode
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