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
Expand description
An object was added or modified
Expand description
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>)
Expand description
Implementations
impl<K> Event<K>
[src]
impl<K> Event<K>
[src]pub fn into_iter_applied(self) -> impl Iterator<Item = K>
[src]
pub fn into_iter_applied(self) -> impl Iterator<Item = K>
[src]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.
pub fn into_iter_touched(self) -> impl Iterator<Item = K>
[src]
pub fn into_iter_touched(self) -> impl Iterator<Item = K>
[src]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,
K: RefUnwindSafe,
impl<K> Send for Event<K> where
K: Send,
K: Send,
impl<K> Sync for Event<K> where
K: Sync,
K: Sync,
impl<K> Unpin for Event<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for Event<K> where
K: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more