pub struct Connect(/* private fields */);
Expand description
The command to tell the information that where connects from/to.
Implementations§
Trait Implementations§
Source§impl ChunkData for Connect
impl ChunkData for Connect
const CHANNEL: Channel = Channel::System
const MESSAGE_TYPE: MessageType = MessageType::Command
Source§impl Decoder<Connect> for ByteBuffer
impl Decoder<Connect> for ByteBuffer
Source§fn decode(&mut self) -> IOResult<Connect>
fn decode(&mut self) -> IOResult<Connect>
Decodes bytes into a Connect command.
§Errors
When some field misses.
When some value is inconsistent with its marker.
§Examples
use sheave_core::{
ByteBuffer,
Decoder,
Encoder,
messages::{
Connect,
amf::v0::Object,
}
};
let mut buffer = ByteBuffer::default();
buffer.encode(&Object::default());
assert!(Decoder::<Connect>::decode(&mut buffer).is_ok());
let mut buffer = ByteBuffer::default();
assert!(Decoder::<Connect>::decode(&mut buffer).is_err())
Source§impl Encoder<Connect> for ByteBuffer
impl Encoder<Connect> for ByteBuffer
impl Command for Connect
impl StructuralPartialEq for Connect
Auto Trait Implementations§
impl Freeze for Connect
impl RefUnwindSafe for Connect
impl Send for Connect
impl Sync for Connect
impl Unpin for Connect
impl UnwindSafe for Connect
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