[][src]Struct rumqttlog::router::Data

pub struct Data {
    pub topic: String,
    pub qos: u8,
    pub cursor: (u64, u64),
    pub last_retain: u64,
    pub size: usize,
    pub payload: Vec<Bytes>,
}

Fields

topic: String

Log to sweep

qos: u8

Qos of the topic

cursor: (u64, u64)

(segment, offset) tuples per replica (1 native and 2 replicas)

last_retain: u64

Next retain publish id

size: usize

Payload size

payload: Vec<Bytes>

Reply data chain

Implementations

impl Data[src]

pub fn new(
    topic: String,
    qos: u8,
    cursor: (u64, u64),
    last_retain: u64,
    size: usize,
    payload: Vec<Bytes>
) -> Data
[src]

Trait Implementations

impl Debug for Data[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, 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.