[][src]Struct ratsio::protocol::MsgProto

pub struct MsgProto {
    pub sequence: u64,
    pub subject: String,
    pub reply: String,
    pub data: Vec<u8>,
    pub timestamp: i64,
    pub redelivered: bool,
    pub crc32: u32,
}

Msg struct. Sequence is assigned for global ordering by the cluster after the publisher has been acknowledged.

Fields

sequence: u64

globally ordered sequence number for the subject's channel

subject: String

subject

reply: String

optional reply

data: Vec<u8>

payload

timestamp: i64

received timestamp

redelivered: bool

Flag specifying if the message is being redelivered

crc32: u32

optional IEEE CRC32

Trait Implementations

impl Clone for MsgProto[src]

impl Debug for MsgProto[src]

impl Default for MsgProto[src]

impl Message for MsgProto[src]

impl PartialEq<MsgProto> for MsgProto[src]

impl StructuralPartialEq for MsgProto[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.