[][src]Struct datastreamcorelib::pubsub::PubSubMessage

pub struct PubSubMessage {
    pub topic: String,
    pub dataparts: Vec<BytesMut>,
}

Raw PUB/SUB message

Fields

topic: Stringdataparts: Vec<BytesMut>

Implementations

impl PubSubMessage[src]

pub fn new(topic: String) -> Fallible<PubSubMessage>[src]

Instantiate new PubSubDataMessage with given topic

Trait Implementations

impl Clone for PubSubMessage[src]

impl Debug for PubSubMessage[src]

impl Default for PubSubMessage[src]

impl PubSubMessageMarker for PubSubMessage[src]

impl<'_> TryFrom<&'_ PubSubDataMessage> for PubSubMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ PubSubImageMessage> for PubSubMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ PubSubMessage> for PubSubDataMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ PubSubMessage> for PubSubImageMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ PubSubMessage> for RawMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ RawMessage> for PubSubMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<PubSubDataMessage> for PubSubMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<PubSubImageMessage> for PubSubMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<PubSubMessage> for PubSubDataMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<PubSubMessage> for PubSubImageMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<PubSubMessage> for RawMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<RawMessage> for PubSubMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl ZMQCodec for PubSubMessage[src]

fn zmq_encode(&self) -> Fallible<Vec<Message>>[src]

Encode the abtracted message into ZMQ message parts, ready for sending

fn zmq_decode(from: Vec<Message>) -> Fallible<Box<Self>>[src]

Decode ZMQ message parts into a pointer to abstracted message

impl ZMQMessageMarker for PubSubMessage[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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,