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