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