pub enum ConfigError {
ConfigExprOverload {
old: Box<ConfigExpr<Ipv4Prefix>>,
new: Box<ConfigExpr<Ipv4Prefix>>,
},
ConfigModifier(Box<ConfigModifier<Ipv4Prefix>>),
}Expand description
Configuration Error
Variants§
ConfigExprOverload
The added expression would overwrite an existing expression
Fields
§
old: Box<ConfigExpr<Ipv4Prefix>>The expression that was already present
§
new: Box<ConfigExpr<Ipv4Prefix>>The expression that was supposed to be applied.
ConfigModifier(Box<ConfigModifier<Ipv4Prefix>>)
The ConfigModifier cannot be applied. There are three cases why this is the case: 2. The ConfigModifier::Remove would remove an non-existing expression 3. The ConfigModifier::Update would update an non-existing expression
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl<'de> Deserialize<'de> for ConfigError
impl<'de> Deserialize<'de> for ConfigError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
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<ConfigError> for NetworkError
impl From<ConfigError> for NetworkError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl<'n, P: Prefix + Debug, Q, Ospf: OspfImpl> NetworkFormatter<'n, P, Q, Ospf> for ConfigError
impl<'n, P: Prefix + Debug, Q, Ospf: OspfImpl> NetworkFormatter<'n, P, Q, Ospf> for ConfigError
Source§impl PartialEq for ConfigError
impl PartialEq for ConfigError
Source§impl Serialize for ConfigError
impl Serialize for ConfigError
impl StructuralPartialEq for ConfigError
Auto Trait Implementations§
impl Freeze for ConfigError
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnwindSafe for ConfigError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more