[][src]Struct datastreamcorelib::imagemessage::PubSubImageMessage

pub struct PubSubImageMessage {
    pub topic: String,
    pub msgid: Uuid,
    pub data: Value,
    pub imginfo: Value,
    pub imgdata: BytesMut,
    pub extra_parts: Vec<BytesMut>,
}

Pub/Sub imagemessage

Fields

topic: Stringmsgid: Uuiddata: Valueimginfo: Valueimgdata: BytesMutextra_parts: Vec<BytesMut>

Implementations

impl PubSubImageMessage[src]

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

Instantiate new datamessage

Trait Implementations

impl Clone for PubSubImageMessage[src]

impl DataMessageMarker for PubSubImageMessage[src]

impl Debug for PubSubImageMessage[src]

impl Default for PubSubImageMessage[src]

impl<'_> From<&'_ ImageMessage> for PubSubImageMessage[src]

ImageMessage can be converted to PubSubImageMessage but topic is set to UNDEFINED

impl From<ImageMessage> for PubSubImageMessage[src]

ImageMessage can be converted to PubSubImageMessage but topic is set to UNDEFINED

impl ImageMessageMarker for PubSubImageMessage[src]

impl ImgdataSanityCheck for PubSubImageMessage[src]

fn get_imginfo(&self) -> &Value[src]

Get pointer to the imginfo object

fn get_imgdata(&self) -> &BytesMut[src]

Get pointer to the imgdata buffer

impl PubSubDataMessageMarker for PubSubImageMessage[src]

impl PubSubMessageMarker for PubSubImageMessage[src]

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

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ PubSubImageMessage> for PubSubDataMessage[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<&'_ PubSubImageMessage> for RawMessage[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<&'_ RawMessage> for PubSubImageMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<PubSubDataMessage> for PubSubImageMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<PubSubImageMessage> for PubSubDataMessage[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<PubSubImageMessage> for RawMessage[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<RawMessage> for PubSubImageMessage[src]

type Error = Error

The type returned in the event of a conversion error.

impl ZMQCodec for PubSubImageMessage[src]

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

Decode ZMQ message parts into a pointer to abstracted message

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

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

impl ZMQMessageMarker for PubSubImageMessage[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>,