Message

Type Alias Message 

Source
pub type Message = ScannerMessage<Vec<Log>, ScannerError>;

Aliased Type§

pub enum Message {
    Data(Vec<Log>),
    Error(ScannerError),
    Status(ScannerStatus),
}

Variants§

Trait Implementations§

Source§

impl From<Error> for Message

Source§

fn from(error: RobustProviderError) -> Message

Converts to this type from the input type.
Source§

impl From<Result<Vec<Log>, RpcError<TransportErrorKind>>> for Message

Source§

fn from(logs: Result<Vec<Log>, RpcError<TransportErrorKind>>) -> Self

Converts to this type from the input type.
Source§

impl From<RpcError<TransportErrorKind>> for Message

Source§

fn from(e: RpcError<TransportErrorKind>) -> Self

Converts to this type from the input type.
Source§

impl From<ScannerError> for Message

Source§

fn from(error: ScannerError) -> Self

Converts to this type from the input type.
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.