pub enum InterfaceNameError {
Empty,
TooLong(usize),
Invalid(String),
}Expand description
Error when parsing an InterfaceName.
Variants§
Empty
Interface name cannot be empty
TooLong(usize)
Interface name must be at most 128 characters
Invalid(String)
Interface name must be an alphanumeric reverse domain
Trait Implementations§
Source§impl Debug for InterfaceNameError
impl Debug for InterfaceNameError
Source§impl Display for InterfaceNameError
impl Display for InterfaceNameError
Source§impl Error for InterfaceNameError
impl Error for InterfaceNameError
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 From<InterfaceNameError> for Error
impl From<InterfaceNameError> for Error
Source§fn from(source: InterfaceNameError) -> Self
fn from(source: InterfaceNameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InterfaceNameError
impl RefUnwindSafe for InterfaceNameError
impl Send for InterfaceNameError
impl Sync for InterfaceNameError
impl Unpin for InterfaceNameError
impl UnsafeUnpin for InterfaceNameError
impl UnwindSafe for InterfaceNameError
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