pub struct InvokeMethod {
pub service_id: Option<u32>,
pub method_id: Option<u32>,
pub args_proto: Option<Vec<u8>>,
pub drop_reply: Option<bool>,
}
Expand description
Client -> Host.
Fields§
§service_id: Option<u32>
BindServiceReply.id.
method_id: Option<u32>
BindServiceReply.method.id.
args_proto: Option<Vec<u8>>
Proto-encoded request argument.
drop_reply: Option<bool>
When true the client specifies that a reply is not needed. The use case is a method with an empty, where the client doesn’t care about the success/failure of the method invocation and rather prefers avoiding the IPC roundtrip + context switch associated with the reply.
Implementations§
Source§impl InvokeMethod
impl InvokeMethod
Sourcepub fn service_id(&self) -> u32
pub fn service_id(&self) -> u32
Returns the value of service_id
, or the default value if service_id
is unset.
Sourcepub fn method_id(&self) -> u32
pub fn method_id(&self) -> u32
Returns the value of method_id
, or the default value if method_id
is unset.
Sourcepub fn args_proto(&self) -> &[u8] ⓘ
pub fn args_proto(&self) -> &[u8] ⓘ
Returns the value of args_proto
, or the default value if args_proto
is unset.
Sourcepub fn drop_reply(&self) -> bool
pub fn drop_reply(&self) -> bool
Returns the value of drop_reply
, or the default value if drop_reply
is unset.
Trait Implementations§
Source§impl Clone for InvokeMethod
impl Clone for InvokeMethod
Source§fn clone(&self) -> InvokeMethod
fn clone(&self) -> InvokeMethod
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 InvokeMethod
impl Debug for InvokeMethod
Source§impl Default for InvokeMethod
impl Default for InvokeMethod
Source§impl Message for InvokeMethod
impl Message for InvokeMethod
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for InvokeMethod
impl PartialEq for InvokeMethod
impl StructuralPartialEq for InvokeMethod
Auto Trait Implementations§
impl Freeze for InvokeMethod
impl RefUnwindSafe for InvokeMethod
impl Send for InvokeMethod
impl Sync for InvokeMethod
impl Unpin for InvokeMethod
impl UnwindSafe for InvokeMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)