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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Hash for InvokeMethodReply
impl Hash 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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
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
Source§fn eq(&self, other: &InvokeMethodReply) -> bool
fn eq(&self, other: &InvokeMethodReply) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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 UnsafeUnpin 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