Enum rust_cast::ChannelMessage
source · pub enum ChannelMessage {
Connection(ConnectionResponse),
Heartbeat(HeartbeatResponse),
Media(MediaResponse),
Receiver(ReceiverResponse),
Raw(CastMessage),
}
Expand description
Supported channel message types.
Variants§
Connection(ConnectionResponse)
Message to be processed by ConnectionChannel
.
Heartbeat(HeartbeatResponse)
Message to be processed by HeartbeatChannel
.
Media(MediaResponse)
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 (e.g. because of unknown
namespace
).
Trait Implementations§
source§impl Clone for ChannelMessage
impl Clone for ChannelMessage
source§fn clone(&self) -> ChannelMessage
fn clone(&self) -> ChannelMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more