Message

Type Alias Message 

Source
pub type Message = ScannerMessage<RangeInclusive<BlockNumber>, ScannerError>;

Aliased Type§

pub enum Message {
    Data(RangeInclusive<u64>),
    Error(ScannerError),
    Status(ScannerStatus),
}

Variants§

Trait Implementations§

Source§

impl From<RangeInclusive<u64>> for Message

Source§

fn from(logs: RangeInclusive<BlockNumber>) -> Self

Converts to this type from the input type.
Source§

impl From<RpcError<TransportErrorKind>> for Message

Source§

fn from(error: 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 PartialEq<RangeInclusive<u64>> for Message

Source§

fn eq(&self, other: &RangeInclusive<BlockNumber>) -> 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.