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 moreAuto Trait Implementations§
impl Freeze for ChannelMessage
impl RefUnwindSafe for ChannelMessage
impl Send for ChannelMessage
impl Sync for ChannelMessage
impl Unpin for ChannelMessage
impl UnwindSafe for ChannelMessage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more