Enum k8s_openapi::apimachinery::pkg::apis::meta::v1::WatchEvent
source · [−]pub enum WatchEvent<T> {
Added(T),
Deleted(T),
Modified(T),
Bookmark {
resource_version: String,
},
ErrorStatus(Status),
ErrorOther(RawExtension),
}
Expand description
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
resource_version: String
ErrorStatus(Status)
ErrorOther(RawExtension)
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for WatchEvent<T> where
T: RefUnwindSafe,
impl<T> Send for WatchEvent<T> where
T: Send,
impl<T> Sync for WatchEvent<T> where
T: Sync,
impl<T> Unpin for WatchEvent<T> where
T: Unpin,
impl<T> UnwindSafe for WatchEvent<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more