[][src]Enum k8s_openapi::apimachinery::pkg::apis::meta::v1::WatchEvent

pub enum WatchEvent<T> {
    Added(T),
    Deleted(T),
    Modified(T),
    Bookmark {
        resource_version: String,
    },
    ErrorStatus(Status),
    ErrorOther(RawExtension),
}

Event represents a single event to a watched resource.

Object is:

  • If Type is Added or Modified: the new state of the object.
  • If Type is Deleted: the state of the object immediately before deletion.
  • If Type is Error: *Status is recommended; other types may make sense depending on context.

Variants

Added(T)
Deleted(T)
Modified(T)
Bookmark

Fields of Bookmark

resource_version: String
ErrorStatus(Status)
ErrorOther(RawExtension)

Trait Implementations

impl<T: Clone> Clone for WatchEvent<T>[src]

impl<T: Debug> Debug for WatchEvent<T>[src]

impl<'de, T> Deserialize<'de> for WatchEvent<T> where
    T: Deserialize<'de>, 
[src]

impl<T: PartialEq> PartialEq<WatchEvent<T>> for WatchEvent<T>[src]

impl<T> Serialize for WatchEvent<T> where
    T: Serialize
[src]

impl<T> StructuralPartialEq for WatchEvent<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for WatchEvent<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for WatchEvent<T> where
    T: Send
[src]

impl<T> Sync for WatchEvent<T> where
    T: Sync
[src]

impl<T> Unpin for WatchEvent<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for WatchEvent<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.