pub struct FcPublish(/* private fields */);
Expand description
The command to tell the playpath. Typically, this becomes same as the releaseStream’s one.
Implementations§
Trait Implementations§
Source§impl ChunkData for FcPublish
impl ChunkData for FcPublish
const CHANNEL: Channel = Channel::System
const MESSAGE_TYPE: MessageType = MessageType::Command
Source§impl Decoder<FcPublish> for ByteBuffer
impl Decoder<FcPublish> for ByteBuffer
Source§fn decode(&mut self) -> IOResult<FcPublish>
fn decode(&mut self) -> IOResult<FcPublish>
Decodes bytes into a FcPublish command.
§Errors
When some field misses.
When some value is inconsistent with its marker.
When some value is invalid for UTF-8 string.
§Examples
use sheave_core::{
ByteBuffer,
Decoder,
Encoder,
messages::{
FcPublish,
amf::v0::{
AmfString,
Null
}
}
};
let mut buffer = ByteBuffer::default();
buffer.encode(&Null);
buffer.encode(&AmfString::default());
assert!(Decoder::<FcPublish>::decode(&mut buffer).is_ok());
let mut buffer = ByteBuffer::default();
assert!(Decoder::<FcPublish>::decode(&mut buffer).is_err())
Source§impl Encoder<FcPublish> for ByteBuffer
impl Encoder<FcPublish> for ByteBuffer
impl Command for FcPublish
impl StructuralPartialEq for FcPublish
Auto Trait Implementations§
impl Freeze for FcPublish
impl RefUnwindSafe for FcPublish
impl Send for FcPublish
impl Sync for FcPublish
impl Unpin for FcPublish
impl UnwindSafe for FcPublish
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