pub struct ClientAction {
pub version: u32,
pub type: u32,
pub payload: Vec<u8>,
}Expand description
Action type representing a custom Action defined by the client.
Fields§
§version: u32Version of the protocol used to encode the data in the payload.
type: u32Type of the action.
payload: Vec<u8>Payload of the action. The actual structure and content of this payload are opaque within this context, as it is entirely managed and interpreted by the client’s specific encoders/decoders.
Trait Implementations§
Source§impl Clone for ClientAction
impl Clone for ClientAction
Source§fn clone(&self) -> ClientAction
fn clone(&self) -> ClientAction
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 ClientAction
impl Debug for ClientAction
Source§impl From<ClientAction> for ClientAction
impl From<ClientAction> for ClientAction
Source§fn from(client_action: ClientAction) -> Self
fn from(client_action: ClientAction) -> Self
Converts to this type from the input type.
Source§impl Hash for ClientAction
impl Hash for ClientAction
Source§impl PartialEq for ClientAction
impl PartialEq for ClientAction
impl Eq for ClientAction
impl StructuralPartialEq for ClientAction
Auto Trait Implementations§
impl Freeze for ClientAction
impl RefUnwindSafe for ClientAction
impl Send for ClientAction
impl Sync for ClientAction
impl Unpin for ClientAction
impl UnwindSafe for ClientAction
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