pub struct CommandError(/* private fields */);
Expand description
The response message that some command failed.
Implementations§
Source§impl CommandError
impl CommandError
Trait Implementations§
Source§impl ChunkData for CommandError
impl ChunkData for CommandError
const CHANNEL: Channel = Channel::Source
const MESSAGE_TYPE: MessageType = MessageType::Command
Source§impl Clone for CommandError
impl Clone for CommandError
Source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
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 CommandError
impl Debug for CommandError
Source§impl Decoder<CommandError> for ByteBuffer
impl Decoder<CommandError> for ByteBuffer
Source§fn decode(&mut self) -> IOResult<CommandError>
fn decode(&mut self) -> IOResult<CommandError>
Decodes bytes into a CommandError command.
§Errors
When some field misses.
When some value is inconsistent with its marker.
§Examples
use sheave_core::{
ByteBuffer,
Decoder,
Encoder,
messages::{
CommandError,
amf::v0::Object,
}
};
let mut buffer = ByteBuffer::default();
buffer.encode(&Object::default());
assert!(Decoder::<CommandError>::decode(&mut buffer).is_ok());
let mut buffer = ByteBuffer::default();
assert!(Decoder::<CommandError>::decode(&mut buffer).is_err())
Source§impl Encoder<CommandError> for ByteBuffer
impl Encoder<CommandError> for ByteBuffer
Source§fn encode(&mut self, command_error: &CommandError)
fn encode(&mut self, command_error: &CommandError)
Encodes a CommandError command into bytes.
Source§impl From<CommandError> for Object
impl From<CommandError> for Object
Source§fn from(command_error: CommandError) -> Self
fn from(command_error: CommandError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandError
impl PartialEq for CommandError
impl Command for CommandError
impl Eq for CommandError
impl StructuralPartialEq for CommandError
Auto Trait Implementations§
impl Freeze for CommandError
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnwindSafe for CommandError
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