pub struct CommandHeader {
pub flags: CommandFlags,
pub opcode: OpCode,
pub length: u16,
pub request_id: u16,
}Expand description
Command header for GenCP requests.
Fields§
§flags: CommandFlagsRequest flags (ack required, broadcast, …).
opcode: OpCodeOperation code for the request.
length: u16Length of the payload in bytes.
request_id: u16Request identifier chosen by the client.
Trait Implementations§
Source§impl Clone for CommandHeader
impl Clone for CommandHeader
Source§fn clone(&self) -> CommandHeader
fn clone(&self) -> CommandHeader
Returns a duplicate 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 CommandHeader
impl Debug for CommandHeader
Source§impl PartialEq for CommandHeader
impl PartialEq for CommandHeader
impl Copy for CommandHeader
impl Eq for CommandHeader
impl StructuralPartialEq for CommandHeader
Auto Trait Implementations§
impl Freeze for CommandHeader
impl RefUnwindSafe for CommandHeader
impl Send for CommandHeader
impl Sync for CommandHeader
impl Unpin for CommandHeader
impl UnwindSafe for CommandHeader
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