pub enum MessageType {
Default,
BeginStream(String),
EndStream(String),
}Expand description
MessageType is utilized by plugins to identiy which type of message are they sending to the runtime. MessageType::Default is utilized for processing data that will be sent to their configured outputs. MessageType::BeginStream and MessageType::EndStream will not be processed by the pipeline but are utilized to logically group messages together under a shared callback function.
Variants§
Default
Default message to be processed
BeginStream(String)
Received from Input modules that indicates the start of an event stream with a shared callback This event is used for tracking state only and will not be processed
EndStream(String)
Received from Input modules that indicates the end of an event stream with a shared callback This event is used for tracking state only and will not be processed
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 MessageType
impl Debug for MessageType
Source§impl Default for MessageType
impl Default for MessageType
Source§fn default() -> MessageType
fn default() -> MessageType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
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 PartialEq for MessageType
impl PartialEq for MessageType
Source§impl Serialize for MessageType
impl Serialize for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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