pub struct PluginEntry {
pub name: String,
pub placement: Option<PluginPlacement>,
pub value: Option<PluginValue>,
pub revision: Vec<u8>,
pub state: i32,
pub failure: Option<Failure>,
pub description: Option<PluginDescription>,
pub declarations_digest: Vec<u8>,
pub process: Option<PluginProcess>,
pub activation: u64,
pub origin: String,
}Expand description
Combines persisted management state with observed activation, process and failure information.
Fields§
§name: StringPersisted management entry identity, distinct from the plugin’s advertised declarations ID.
placement: Option<PluginPlacement>§value: Option<PluginValue>§revision: Vec<u8>Opaque conditional revision of the management value; resend it unchanged to Set/Delete/Restart.
state: i32§failure: Option<Failure>Absent when the entry has no reported failure; failures retain machine classification and diagnostics.
description: Option<PluginDescription>Advertised description when an activation has supplied it; absent before discovery is available.
declarations_digest: Vec<u8>Digest of the declarations observed for this entry’s activation.
process: Option<PluginProcess>Managed process metadata when available; remote placement does not supply managed process metadata.
activation: u64Generation of the entry’s activation; old calls and handles do not follow its replacement.
origin: StringOpaque creator-chosen label; empty means unspecified and only Delete then Create can change it.
Implementations§
Source§impl PluginEntry
impl PluginEntry
Sourcepub fn state(&self) -> PluginState
pub fn state(&self) -> PluginState
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: PluginState)
pub fn set_state(&mut self, value: PluginState)
Sets state to the provided enum value.
Trait Implementations§
Source§impl Clone for PluginEntry
impl Clone for PluginEntry
Source§impl Debug for PluginEntry
impl Debug for PluginEntry
Source§impl Default for PluginEntry
impl Default for PluginEntry
Source§impl Message for PluginEntry
impl Message for PluginEntry
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for PluginEntry
impl PartialEq for PluginEntry
Source§impl ReflectMessage for PluginEntry
impl ReflectMessage for PluginEntry
Source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
MessageDescriptor describing the type of this message.Source§fn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
fn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
DynamicMessage by going
through the byte representation.impl StructuralPartialEq for PluginEntry
Auto Trait Implementations§
impl Forget for PluginEntry
impl Freeze for PluginEntrywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const Failure is !null: Freeze,
PhantomData<Failure>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<OperationContract>: Freeze,
PhantomData<Requirement>: Freeze,
PhantomData<StreamDeclaration>: Freeze,
PhantomData<Section>: Freeze,
PhantomData<FileDescriptorProto>: Freeze,
PhantomData<LaneDeclaration>: Freeze,
impl Move for PluginEntry
impl RefUnwindSafe for PluginEntry
impl Send for PluginEntry
impl Sync for PluginEntry
impl Unpin for PluginEntry
impl UnsafeUnpin for PluginEntrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const Failure is !null: UnsafeUnpin,
PhantomData<Failure>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<OperationContract>: UnsafeUnpin,
PhantomData<Requirement>: UnsafeUnpin,
PhantomData<StreamDeclaration>: UnsafeUnpin,
PhantomData<Section>: UnsafeUnpin,
PhantomData<FileDescriptorProto>: UnsafeUnpin,
PhantomData<LaneDeclaration>: UnsafeUnpin,
impl UnwindSafe for PluginEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request