pub enum StrParsingError {
SyntaxError,
InvalidDestination,
InvalidPort,
InvalidTimeouts,
}
Expand description
Represents an error that
can occur during from_str
parsing
Variants§
SyntaxError
Indicates that the string is not formatted appropriately for parsing process
InvalidDestination
Indicates that a destination address cannot be parsed
InvalidPort
Indicates that a port (u16) is invalid and it is unable to parse it
InvalidTimeouts
Indicates that timeouts cannot be parsed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StrParsingError
impl RefUnwindSafe for StrParsingError
impl Send for StrParsingError
impl Sync for StrParsingError
impl Unpin for StrParsingError
impl UnwindSafe for StrParsingError
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