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