pub enum ParsedMessage {
Item(Message),
FilteredOut(usize),
Invalid,
}
Expand description
Used when producing messages in a stream, indicates if messages where filtered or could not be parsed
Variants§
Item(Message)
Regular message, could be parsed
FilteredOut(usize)
message was filtered out due to filter conditions (Log-Level etc.)
Invalid
Parsed message was invalid, no parse possible
Trait Implementations§
Source§impl Debug for ParsedMessage
impl Debug for ParsedMessage
Source§impl PartialEq for ParsedMessage
impl PartialEq for ParsedMessage
impl StructuralPartialEq for ParsedMessage
Auto Trait Implementations§
impl Freeze for ParsedMessage
impl RefUnwindSafe for ParsedMessage
impl Send for ParsedMessage
impl Sync for ParsedMessage
impl Unpin for ParsedMessage
impl UnwindSafe for ParsedMessage
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