pub enum WatcherOperationError<S: Debug, B: Update<S> + Debug> {
EventStream(Error),
Update(UpdateError),
UnexpectedEnd {
final_state: B,
marker: PhantomData<S>,
},
UnexpectedEvent(Event),
}
Expand description
Interface watcher operational errors.
Variants§
EventStream(Error)
Watcher event stream yielded an error.
Update(UpdateError)
Watcher event stream yielded an event that could not be applied to the local state.
UnexpectedEnd
Watcher event stream ended unexpectedly.
Fields
§
final_state: B
The local state at the time of the watcher event stream’s end.
§
marker: PhantomData<S>
Marker for the state held alongside interface properties.
UnexpectedEvent(Event)
Watcher event stream yielded an event with unexpected type.
Trait Implementations§
Source§impl<S: Debug, B> Display for WatcherOperationError<S, B>
impl<S: Debug, B> Display for WatcherOperationError<S, B>
Source§impl<S: Debug, B: Update<S> + Debug> Error for WatcherOperationError<S, B>
impl<S: Debug, B: Update<S> + Debug> Error for WatcherOperationError<S, B>
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()
Auto Trait Implementations§
impl<S, B> Freeze for WatcherOperationError<S, B>where
B: Freeze,
impl<S, B> !RefUnwindSafe for WatcherOperationError<S, B>
impl<S, B> Send for WatcherOperationError<S, B>
impl<S, B> Sync for WatcherOperationError<S, B>
impl<S, B> Unpin for WatcherOperationError<S, B>
impl<S, B> !UnwindSafe for WatcherOperationError<S, B>
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