[][src]Enum streaming_platform::ClientMsg

pub enum ClientMsg {
    MsgMeta(u64MsgMeta),
    PayloadData(u64usize[u8; 1024]),
    PayloadFinished(u64usize[u8; 1024]),
    AttachmentData(u64usizeusize[u8; 1024]),
    AttachmentFinished(u64usizeusize[u8; 1024]),
    MessageFinished(u64),
    Message(u64MsgMetaVec<u8>, Vec<u8>),
    MessageAborted(Option<u64>),
}

Messages received from client

Variants

MsgMeta(u64MsgMeta)

This is sent in Stream mode without fs future

PayloadData(u64usize[u8; 1024])

This is sent in Stream mode without fs future

PayloadFinished(u64usize[u8; 1024])

This is sent in Stream mode without fs future

AttachmentData(u64usizeusize[u8; 1024])

This is sent in Stream mode without fs future. First field is index, second is number of bytes read, last is data itself.

AttachmentFinished(u64usizeusize[u8; 1024])

This is sent in Stream mode without fs future

MessageFinished(u64)

This is sent in Stream mode without fs future

Message(u64MsgMetaVec<u8>, Vec<u8>)

This is sent in FullMessage mode without fs future

MessageAborted(Option<u64>)

Message was aborted, through cancelation or error

Implementations

impl ClientMsg[src]

pub fn get_stream_id(&self) -> Option<u64>[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.

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