pub enum UpdateError {
DuplicateAdded(Properties),
DuplicateExisting(Properties),
InvalidProperties(PropertiesValidationError),
InvalidAddress(AddressValidationError),
MissingId(Properties),
EmptyChange(Properties),
Removed,
UnknownChanged(Properties),
UnknownRemoved(u64),
ZeroInterfaceId,
}
Expand description
Interface watcher event update errors.
Variants§
DuplicateAdded(Properties)
The update attempted to add an already-known added interface into local state.
DuplicateExisting(Properties)
The update attempted to add an already-known existing interface into local state.
InvalidProperties(PropertiesValidationError)
The event contained one or more invalid properties.
InvalidAddress(AddressValidationError)
The event contained one or more invalid addresses.
MissingId(Properties)
The event was required to have contained an ID, but did not.
EmptyChange(Properties)
The event did not contain any changes.
Removed
The update removed the only interface in the local state.
UnknownChanged(Properties)
The event contained changes for an interface that did not exist in local state.
UnknownRemoved(u64)
The event removed an interface that did not exist in local state.
ZeroInterfaceId
The event included an interface id = 0, which should never happen.
Trait Implementations§
Source§impl Debug for UpdateError
impl Debug for UpdateError
Source§impl Display for UpdateError
impl Display for UpdateError
Source§impl Error for UpdateError
impl Error for UpdateError
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<AddressValidationError> for UpdateError
impl From<AddressValidationError> for UpdateError
Source§fn from(source: AddressValidationError) -> Self
fn from(source: AddressValidationError) -> Self
Converts to this type from the input type.
Source§impl From<PropertiesValidationError> for UpdateError
impl From<PropertiesValidationError> for UpdateError
Source§fn from(source: PropertiesValidationError) -> Self
fn from(source: PropertiesValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateError
impl RefUnwindSafe for UpdateError
impl Send for UpdateError
impl Sync for UpdateError
impl Unpin for UpdateError
impl UnwindSafe for UpdateError
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