pub struct InvokeMethodReply {
pub success: Option<bool>,
pub has_more: Option<bool>,
pub reply_proto: Option<Vec<u8>>,
}
Expand description
Host -> Client.
Fields§
§success: Option<bool>
§has_more: Option<bool>
only for streaming RPCs.
reply_proto: Option<Vec<u8>>
proto-encoded response value.
Implementations§
Source§impl InvokeMethodReply
impl InvokeMethodReply
Sourcepub fn success(&self) -> bool
pub fn success(&self) -> bool
Returns the value of success
, or the default value if success
is unset.
Sourcepub fn has_more(&self) -> bool
pub fn has_more(&self) -> bool
Returns the value of has_more
, or the default value if has_more
is unset.
Sourcepub fn reply_proto(&self) -> &[u8] ⓘ
pub fn reply_proto(&self) -> &[u8] ⓘ
Returns the value of reply_proto
, or the default value if reply_proto
is unset.
Trait Implementations§
Source§impl Clone for InvokeMethodReply
impl Clone for InvokeMethodReply
Source§fn clone(&self) -> InvokeMethodReply
fn clone(&self) -> InvokeMethodReply
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 InvokeMethodReply
impl Debug for InvokeMethodReply
Source§impl Default for InvokeMethodReply
impl Default for InvokeMethodReply
Source§impl Message for InvokeMethodReply
impl Message for InvokeMethodReply
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 InvokeMethodReply
impl PartialEq for InvokeMethodReply
impl StructuralPartialEq for InvokeMethodReply
Auto Trait Implementations§
impl Freeze for InvokeMethodReply
impl RefUnwindSafe for InvokeMethodReply
impl Send for InvokeMethodReply
impl Sync for InvokeMethodReply
impl Unpin for InvokeMethodReply
impl UnwindSafe for InvokeMethodReply
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
)