pub enum NetstringError {
StringTooLong,
InvalidData,
NoColonFound,
MissingComma,
InvalidLength,
}Expand description
This error is returned by Netstring::parse_next
Variants§
StringTooLong
The parsed string will be longer than the available buffer.
InvalidData
The given data is invalid.
NoColonFound
No colon found within the first 20 characters.
MissingComma
Missing comma at end of string
InvalidLength
The length is not a decimal number
Trait Implementations§
Source§impl Clone for NetstringError
impl Clone for NetstringError
Source§fn clone(&self) -> NetstringError
fn clone(&self) -> NetstringError
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 NetstringError
impl Debug for NetstringError
Source§impl Display for NetstringError
impl Display for NetstringError
Source§impl Error for NetstringError
impl Error for NetstringError
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 NetstringError
Auto Trait Implementations§
impl Freeze for NetstringError
impl RefUnwindSafe for NetstringError
impl Send for NetstringError
impl Sync for NetstringError
impl Unpin for NetstringError
impl UnsafeUnpin for NetstringError
impl UnwindSafe for NetstringError
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