Enum rust_cast::ChannelMessage [] [src]

pub enum ChannelMessage<'a> {
    Connection(ConnectionResponse),
    Heartbeat(HeartbeatResponse),
    Media(MediaResponse<'a>),
    Receiver(ReceiverResponse),
    Raw(CastMessage),
}

Supported channel message types.

Variants

Connection(ConnectionResponse)

Message to be processed by ConnectionChannel.

Heartbeat(HeartbeatResponse)

Message to be processed by HeartbeatChannel.

Media(MediaResponse<'a>)

Message to be processed by MediaChannel.

Receiver(ReceiverResponse)

Message to be processed by ReceiverChannel.

Raw(CastMessage)

Raw message is returned when built-in channels can't process it (eg. because of unknown namespace).