pub struct MobileMessage {
pub header: MobileProtocolHeader,
pub method: Bytes,
pub body: Bytes,
}Expand description
Mobile RPC Message
Fields§
§header: MobileProtocolHeader§method: Bytes§body: BytesImplementations§
Source§impl MobileMessage
impl MobileMessage
Sourcepub fn new_request(seq_id: u16, method: Bytes, body: Bytes) -> Self
pub fn new_request(seq_id: u16, method: Bytes, body: Bytes) -> Self
Create a new request message
Sourcepub fn new_response(seq_id: u16, body: Bytes) -> Self
pub fn new_response(seq_id: u16, body: Bytes) -> Self
Create a new response message
Sourcepub fn new_notify(seq_id: u16, method: Bytes, body: Bytes) -> Self
pub fn new_notify(seq_id: u16, method: Bytes, body: Bytes) -> Self
Create a new notify message
Sourcepub fn new_sysrsp(seq_id: u16, body: Bytes) -> Self
pub fn new_sysrsp(seq_id: u16, body: Bytes) -> Self
Create a new system response message
Trait Implementations§
Source§impl Clone for MobileMessage
impl Clone for MobileMessage
Source§fn clone(&self) -> MobileMessage
fn clone(&self) -> MobileMessage
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 MobileMessage
impl Debug for MobileMessage
Auto Trait Implementations§
impl !Freeze for MobileMessage
impl RefUnwindSafe for MobileMessage
impl Send for MobileMessage
impl Sync for MobileMessage
impl Unpin for MobileMessage
impl UnwindSafe for MobileMessage
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