sheave_core::messages

Trait ChunkData

Source
pub trait ChunkData {
    const CHANNEL: Channel;
    const MESSAGE_TYPE: MessageType;
}
Expand description

Uniforms chunk data by a channel numbers and a message type.

When writing into streams, we are required to imprint a chunk ID and a message type ID into their headers. This makes you to reduce its cost. For example, write_chunk use this for writing chunks correctly.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ChunkData for Acknowledgement

Source§

const CHANNEL: Channel = Channel::Network

Source§

const MESSAGE_TYPE: MessageType = MessageType::Acknowledgement

Source§

impl ChunkData for Audio

Source§

const CHANNEL: Channel = Channel::Audio

Source§

const MESSAGE_TYPE: MessageType = MessageType::Audio

Source§

impl ChunkData for ChunkSize

Source§

const CHANNEL: Channel = Channel::Network

Source§

const MESSAGE_TYPE: MessageType = MessageType::ChunkSize

Source§

impl ChunkData for Connect

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for ConnectResult

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for CreateStream

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for CreateStreamResult

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for DeleteStream

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for FcPublish

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for FcUnpublish

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for OnFcPublish

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for OnStatus

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for PeerBandwidth

Source§

const CHANNEL: Channel = Channel::Network

Source§

const MESSAGE_TYPE: MessageType = MessageType::PeerBandwidth

Source§

impl ChunkData for Publish

Source§

const CHANNEL: Channel = Channel::Source

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for ReleaseStream

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for ReleaseStreamResult

Source§

const CHANNEL: Channel = Channel::System

Source§

const MESSAGE_TYPE: MessageType = MessageType::Command

Source§

impl ChunkData for SetDataFrame

Source§

const CHANNEL: Channel = Channel::Audio

Source§

const MESSAGE_TYPE: MessageType = MessageType::Data

Source§

impl ChunkData for StreamBegin

Source§

const CHANNEL: Channel = Channel::Network

Source§

const MESSAGE_TYPE: MessageType = MessageType::UserControl

Source§

impl ChunkData for Video

Source§

const CHANNEL: Channel = Channel::Video

Source§

const MESSAGE_TYPE: MessageType = MessageType::Video

Source§

impl ChunkData for WindowAcknowledgementSize

Source§

const CHANNEL: Channel = Channel::Network

Source§

const MESSAGE_TYPE: MessageType = MessageType::WindowAcknowledgementSize