pub struct SetPlaylist(/* private fields */);
Expand description
The command to tell the Playlist of streams.
Implementations§
Source§impl SetPlaylist
impl SetPlaylist
Trait Implementations§
Source§impl ChunkData for SetPlaylist
impl ChunkData for SetPlaylist
const CHANNEL: Channel = Channel::Video
const MESSAGE_TYPE: MessageType = MessageType::Command
Source§impl Clone for SetPlaylist
impl Clone for SetPlaylist
Source§fn clone(&self) -> SetPlaylist
fn clone(&self) -> SetPlaylist
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 moreSource§impl Debug for SetPlaylist
impl Debug for SetPlaylist
Source§impl Decoder<SetPlaylist> for ByteBuffer
impl Decoder<SetPlaylist> for ByteBuffer
Source§fn decode(&mut self) -> IOResult<SetPlaylist>
fn decode(&mut self) -> IOResult<SetPlaylist>
Decodes bytes into a SetPlaylist command.
§Errors
When some field misses.
When some value is inconsistent with its marker.
§Examples
use sheave_core::{
ByteBuffer,
Decoder,
Encoder,
messages::{
SetPlaylist,
amf::v0::{
Null,
EcmaArray
},
}
};
let mut buffer = ByteBuffer::default();
buffer.encode(&Null);
buffer.encode(&EcmaArray::default());
assert!(Decoder::<SetPlaylist>::decode(&mut buffer).is_ok());
let mut buffer = ByteBuffer::default();
assert!(Decoder::<SetPlaylist>::decode(&mut buffer).is_err())
Source§impl Default for SetPlaylist
impl Default for SetPlaylist
Source§fn default() -> SetPlaylist
fn default() -> SetPlaylist
Returns the “default value” for a type. Read more
Source§impl Encoder<SetPlaylist> for ByteBuffer
impl Encoder<SetPlaylist> for ByteBuffer
Source§fn encode(&mut self, set_playlist: &SetPlaylist)
fn encode(&mut self, set_playlist: &SetPlaylist)
Encodes a SetPlaylist command into bytes.
Source§impl From<SetPlaylist> for EcmaArray
impl From<SetPlaylist> for EcmaArray
Source§fn from(set_playlist: SetPlaylist) -> Self
fn from(set_playlist: SetPlaylist) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetPlaylist
impl PartialEq for SetPlaylist
impl Command for SetPlaylist
impl Eq for SetPlaylist
impl StructuralPartialEq for SetPlaylist
Auto Trait Implementations§
impl Freeze for SetPlaylist
impl RefUnwindSafe for SetPlaylist
impl Send for SetPlaylist
impl Sync for SetPlaylist
impl Unpin for SetPlaylist
impl UnwindSafe for SetPlaylist
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