Struct kube::runtime::reflector::store::Writer [−][src]
pub struct Writer<K> where
K: 'static + Resource,
<K as Resource>::DynamicType: Eq,
<K as Resource>::DynamicType: Hash, { /* fields omitted */ }
runtime
only.Expand description
A writable Store handle
This is exclusive since it’s not safe to share a single Store
between multiple reflectors.
In particular, Restarted
events will clobber the state of other connected reflectors.
Implementations
impl<K> Writer<K> where
K: 'static + Resource + Clone,
<K as Resource>::DynamicType: Eq,
<K as Resource>::DynamicType: Hash,
<K as Resource>::DynamicType: Clone,
impl<K> Writer<K> where
K: 'static + Resource + Clone,
<K as Resource>::DynamicType: Eq,
<K as Resource>::DynamicType: Hash,
<K as Resource>::DynamicType: Clone,
Creates a new Writer with the specified dynamic type.
If the dynamic type is default-able (for example when writer is used with
k8s_openapi
types) you can use Default
instead.
Return a read handle to the store
Multiple read handles may be obtained, by either calling as_reader
multiple times,
or by calling Store::clone()
afterwards.
Applies a single watcher event to the store
Trait Implementations
impl<K> Debug for Writer<K> where
K: 'static + Debug + Resource,
<K as Resource>::DynamicType: Eq,
<K as Resource>::DynamicType: Hash,
<K as Resource>::DynamicType: Debug,
impl<K> Debug for Writer<K> where
K: 'static + Debug + Resource,
<K as Resource>::DynamicType: Eq,
<K as Resource>::DynamicType: Hash,
<K as Resource>::DynamicType: Debug,
Auto Trait Implementations
impl<K> !RefUnwindSafe for Writer<K>
impl<K> Unpin for Writer<K> where
<K as Resource>::DynamicType: Unpin,
impl<K> !UnwindSafe for Writer<K>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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