pub struct TerminateEvent {
pub source: String,
pub correlation_id: Option<String>,
}Expand description
A special event type that signals the dispatcher to terminate
Fields§
§source: String§correlation_id: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for TerminateEvent
impl Clone for TerminateEvent
Source§fn clone(&self) -> TerminateEvent
fn clone(&self) -> TerminateEvent
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 moreSource§impl Debug for TerminateEvent
impl Debug for TerminateEvent
Source§impl<'de> Deserialize<'de> for TerminateEvent
impl<'de> Deserialize<'de> for TerminateEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Event for TerminateEvent
impl Event for TerminateEvent
Source§fn correlation_id(&self) -> Option<&str>
fn correlation_id(&self) -> Option<&str>
Returns the correlation ID if set
Source§fn set_correlation_id(&mut self, id: String)
fn set_correlation_id(&mut self, id: String)
Sets the correlation ID
Auto Trait Implementations§
impl Freeze for TerminateEvent
impl RefUnwindSafe for TerminateEvent
impl Send for TerminateEvent
impl Sync for TerminateEvent
impl Unpin for TerminateEvent
impl UnwindSafe for TerminateEvent
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