Enum virtual_net::ruleset::RuleParseError
source · pub enum RuleParseError {
Direction(String),
InvalidInteger(ParseIntError),
InvalidIpRange(AddrParseError),
InvalidIpAddr(AddrParseError),
MissingColon(String),
MalformedIpv6(String),
InvalidRuleType(String),
InvalidRuleAction(String),
DomainRuleNotFound(String),
DomainAlreadyExpanded(String),
}
Expand description
Represents the errors that could happen during parsing the ruleset
Variants§
Direction(String)
InvalidInteger(ParseIntError)
InvalidIpRange(AddrParseError)
InvalidIpAddr(AddrParseError)
MissingColon(String)
MalformedIpv6(String)
InvalidRuleType(String)
InvalidRuleAction(String)
DomainRuleNotFound(String)
DomainAlreadyExpanded(String)
Trait Implementations§
source§impl Debug for RuleParseError
impl Debug for RuleParseError
source§impl Display for RuleParseError
impl Display for RuleParseError
source§impl Error for RuleParseError
impl Error for RuleParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<AddrParseError> for RuleParseError
impl From<AddrParseError> for RuleParseError
source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
source§impl From<AddrParseError> for RuleParseError
impl From<AddrParseError> for RuleParseError
source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for RuleParseError
impl From<ParseIntError> for RuleParseError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuleParseError
impl RefUnwindSafe for RuleParseError
impl Send for RuleParseError
impl Sync for RuleParseError
impl Unpin for RuleParseError
impl UnwindSafe for RuleParseError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.