pub struct Command {
pub header: CommandHeader,
pub key: Bytes,
pub value: Bytes,
}
Expand description
Command structure
Fields§
§header: CommandHeader
Command header
key: Bytes
Key (if any)
value: Bytes
Value (if any)
Implementations§
Source§impl Command
impl Command
Sourcepub fn new(
header: CommandHeader,
key: impl Into<Bytes>,
value: impl Into<Bytes>,
) -> Self
pub fn new( header: CommandHeader, key: impl Into<Bytes>, value: impl Into<Bytes>, ) -> Self
Create a new command
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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