pub enum WireStringError {
Empty,
TooLong {
found: usize,
maximum: usize,
},
Invalid(&'static str),
}Variants§
Trait Implementations§
Source§impl Clone for WireStringError
impl Clone for WireStringError
Source§fn clone(&self) -> WireStringError
fn clone(&self) -> WireStringError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WireStringError
impl Debug for WireStringError
Source§impl Display for WireStringError
impl Display for WireStringError
impl Eq for WireStringError
Source§impl Error for WireStringError
impl Error for WireStringError
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 PartialEq for WireStringError
impl PartialEq for WireStringError
Source§fn eq(&self, other: &WireStringError) -> bool
fn eq(&self, other: &WireStringError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WireStringError
Auto Trait Implementations§
impl Freeze for WireStringError
impl RefUnwindSafe for WireStringError
impl Send for WireStringError
impl Sync for WireStringError
impl Unpin for WireStringError
impl UnsafeUnpin for WireStringError
impl UnwindSafe for WireStringError
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