pub enum QueuedEvent {
DataPoint {
source: String,
data: ValueWord,
},
Timer {
id: u64,
},
External {
payload: Vec<u8>,
},
Subscription {
subscription_id: u64,
source: String,
data: ValueWord,
},
Error {
source: String,
message: String,
},
Shutdown,
}Expand description
Events that can be queued for processing
Variants§
DataPoint
New data point arrived from a data source
Fields
Timer
Timer fired
External
External signal from a plugin or external system
Subscription
Subscription update (streaming data)
Error
Error from a data source or plugin
Shutdown
Shutdown request
Trait Implementations§
Source§impl Clone for QueuedEvent
impl Clone for QueuedEvent
Source§fn clone(&self) -> QueuedEvent
fn clone(&self) -> QueuedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueuedEvent
impl RefUnwindSafe for QueuedEvent
impl Send for QueuedEvent
impl Sync for QueuedEvent
impl Unpin for QueuedEvent
impl UnsafeUnpin for QueuedEvent
impl UnwindSafe for QueuedEvent
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more