pub struct ReleaseStream(/* private fields */);
Expand description
The command to tell the Play Path (e.g. something file name).
Implementations§
Source§impl ReleaseStream
impl ReleaseStream
Trait Implementations§
Source§impl ChunkData for ReleaseStream
impl ChunkData for ReleaseStream
const CHANNEL: Channel = Channel::System
const MESSAGE_TYPE: MessageType = MessageType::Command
Source§impl Clone for ReleaseStream
impl Clone for ReleaseStream
Source§fn clone(&self) -> ReleaseStream
fn clone(&self) -> ReleaseStream
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 ReleaseStream
impl Debug for ReleaseStream
Source§impl Decoder<ReleaseStream> for ByteBuffer
impl Decoder<ReleaseStream> for ByteBuffer
Source§fn decode(&mut self) -> IOResult<ReleaseStream>
fn decode(&mut self) -> IOResult<ReleaseStream>
Decodes bytes into a ReleaseStream 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::{
ReleaseStream,
amf::v0::{
AmfString,
Null
}
}
};
let mut buffer = ByteBuffer::default();
buffer.encode(&Null);
buffer.encode(&AmfString::default());
assert!(Decoder::<ReleaseStream>::decode(&mut buffer).is_ok());
let mut buffer = ByteBuffer::default();
assert!(Decoder::<ReleaseStream>::decode(&mut buffer).is_err())
Source§impl Encoder<ReleaseStream> for ByteBuffer
impl Encoder<ReleaseStream> for ByteBuffer
Source§fn encode(&mut self, release_stream: &ReleaseStream)
fn encode(&mut self, release_stream: &ReleaseStream)
Encodes a ReleaseStream command into bytes.
Source§impl From<ReleaseStream> for AmfString
impl From<ReleaseStream> for AmfString
Source§fn from(release_stream: ReleaseStream) -> Self
fn from(release_stream: ReleaseStream) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReleaseStream
impl PartialEq for ReleaseStream
impl Command for ReleaseStream
impl StructuralPartialEq for ReleaseStream
Auto Trait Implementations§
impl Freeze for ReleaseStream
impl RefUnwindSafe for ReleaseStream
impl Send for ReleaseStream
impl Sync for ReleaseStream
impl Unpin for ReleaseStream
impl UnwindSafe for ReleaseStream
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