pub enum Event {
Snapshot(PluginSnapshot),
Change(PluginChange),
ResyncRequired(String),
}Expand description
Selects one variant; an unset discriminator carries no selected value.
Variants§
Snapshot(PluginSnapshot)
Required retained snapshot handle issued by this owner; preserve its token and original position.
Change(PluginChange)
ResyncRequired(String)
Continuity is unavailable; open a fresh read instead of treating this event as a successful continuation.
Implementations§
Source§impl Event
impl Event
Sourcepub fn merge(
field: &mut Option<Event>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Event>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Eventwhere
*const u8 is !null: Freeze,
PhantomData<PluginEntry>: 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 Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Eventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PluginEntry>: 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 Event
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request