Enum kube_runtime::watcher::Event [−][src]
pub enum Event<K> {
Applied(K),
Deleted(K),
Restarted(Vec<K>),
}
Expand description
Watch events returned from the watcher
Variants
An object was added or modified
An object was deleted
NOTE: This should not be used for managing persistent state elsewhere, since events may be lost if the watcher is unavailable. Use Finalizers instead.
Restarted(Vec<K>)
The watch stream was restarted, so Deleted
events may have been missed
Should be used as a signal to replace the store contents atomically.
Any objects that were previously Applied
but are not listed in this event
should be assumed to have been Deleted
.
Tuple Fields of Restarted
0: Vec<K>
Implementations
Flattens out all objects that were added or modified in the event.
Deleted
objects are ignored, all objects mentioned by Restarted
events are
emitted individually.
Flattens out all objects that were added, modified, or deleted in the event.
Note that Deleted
events may be missed when restarting the stream. Use finalizers
or owner references instead if you care about cleaning up external resources after
deleted objects.
Trait Implementations
Auto Trait Implementations
impl<K> RefUnwindSafe for Event<K> where
K: RefUnwindSafe,
impl<K> UnwindSafe for Event<K> where
K: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more