Skip to main content

Message

Type Alias Message 

Source
pub type Message = ScannerMessage<Vec<Log>>;
Expand description

The item type yielded by event subscription streams.

This is a ScannerMessage whose data payload is a batch of Log values.

Aliased Type§

pub enum Message {
    Data(Vec<Log>),
    Notification(Notification),
}

Variants§

§

Data(Vec<Log>)

Data streamed to the subscriber.

§

Notification(Notification)

Notification about scanner state changes or important events.

Trait Implementations§

Source§

impl From<Vec<Log>> for Message

Source§

fn from(logs: Vec<Log>) -> Self

Converts to this type from the input type.
Source§

impl<E: SolEvent> PartialEq<&[E]> for Message

Source§

fn eq(&self, other: &&[E]) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<E: SolEvent, const N: usize> PartialEq<&[E; N]> for Message

Source§

fn eq(&self, other: &&[E; N]) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<E: SolEvent> PartialEq<&Vec<E>> for Message

Source§

fn eq(&self, other: &&Vec<E>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<E: SolEvent> PartialEq<Vec<E>> for Message

Source§

fn eq(&self, other: &Vec<E>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.