pub struct Message {
pub message: Option<Message>,
}Fields§
§message: Option<Message>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ConnectRequest> for Message
impl From<ConnectRequest> for Message
Source§fn from(m: ConnectRequest) -> Self
fn from(m: ConnectRequest) -> Self
Converts to this type from the input type.
Source§impl From<ConnectResponse> for Message
impl From<ConnectResponse> for Message
Source§fn from(m: ConnectResponse) -> Self
fn from(m: ConnectResponse) -> Self
Converts to this type from the input type.
Source§impl From<Disconnect> for Message
impl From<Disconnect> for Message
Source§fn from(m: Disconnect) -> Self
fn from(m: Disconnect) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamCall> for Message
impl From<DownstreamCall> for Message
Source§fn from(m: DownstreamCall) -> Self
fn from(m: DownstreamCall) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamChunk> for Message
impl From<DownstreamChunk> for Message
Source§fn from(m: DownstreamChunk) -> Self
fn from(m: DownstreamChunk) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamChunkAck> for Message
impl From<DownstreamChunkAck> for Message
Source§fn from(m: DownstreamChunkAck) -> Self
fn from(m: DownstreamChunkAck) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamChunkAckComplete> for Message
impl From<DownstreamChunkAckComplete> for Message
Source§fn from(m: DownstreamChunkAckComplete) -> Self
fn from(m: DownstreamChunkAckComplete) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamCloseRequest> for Message
impl From<DownstreamCloseRequest> for Message
Source§fn from(m: DownstreamCloseRequest) -> Self
fn from(m: DownstreamCloseRequest) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamCloseResponse> for Message
impl From<DownstreamCloseResponse> for Message
Source§fn from(m: DownstreamCloseResponse) -> Self
fn from(m: DownstreamCloseResponse) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamMetadata> for Message
impl From<DownstreamMetadata> for Message
Source§fn from(m: DownstreamMetadata) -> Self
fn from(m: DownstreamMetadata) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamMetadataAck> for Message
impl From<DownstreamMetadataAck> for Message
Source§fn from(m: DownstreamMetadataAck) -> Self
fn from(m: DownstreamMetadataAck) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamOpenRequest> for Message
impl From<DownstreamOpenRequest> for Message
Source§fn from(m: DownstreamOpenRequest) -> Self
fn from(m: DownstreamOpenRequest) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamOpenResponse> for Message
impl From<DownstreamOpenResponse> for Message
Source§fn from(m: DownstreamOpenResponse) -> Self
fn from(m: DownstreamOpenResponse) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamResumeRequest> for Message
impl From<DownstreamResumeRequest> for Message
Source§fn from(m: DownstreamResumeRequest) -> Self
fn from(m: DownstreamResumeRequest) -> Self
Converts to this type from the input type.
Source§impl From<DownstreamResumeResponse> for Message
impl From<DownstreamResumeResponse> for Message
Source§fn from(m: DownstreamResumeResponse) -> Self
fn from(m: DownstreamResumeResponse) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamCall> for Message
impl From<UpstreamCall> for Message
Source§fn from(m: UpstreamCall) -> Self
fn from(m: UpstreamCall) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamCallAck> for Message
impl From<UpstreamCallAck> for Message
Source§fn from(m: UpstreamCallAck) -> Self
fn from(m: UpstreamCallAck) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamChunk> for Message
impl From<UpstreamChunk> for Message
Source§fn from(m: UpstreamChunk) -> Self
fn from(m: UpstreamChunk) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamChunkAck> for Message
impl From<UpstreamChunkAck> for Message
Source§fn from(m: UpstreamChunkAck) -> Self
fn from(m: UpstreamChunkAck) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamCloseRequest> for Message
impl From<UpstreamCloseRequest> for Message
Source§fn from(m: UpstreamCloseRequest) -> Self
fn from(m: UpstreamCloseRequest) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamCloseResponse> for Message
impl From<UpstreamCloseResponse> for Message
Source§fn from(m: UpstreamCloseResponse) -> Self
fn from(m: UpstreamCloseResponse) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamMetadata> for Message
impl From<UpstreamMetadata> for Message
Source§fn from(m: UpstreamMetadata) -> Self
fn from(m: UpstreamMetadata) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamMetadataAck> for Message
impl From<UpstreamMetadataAck> for Message
Source§fn from(m: UpstreamMetadataAck) -> Self
fn from(m: UpstreamMetadataAck) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamOpenRequest> for Message
impl From<UpstreamOpenRequest> for Message
Source§fn from(m: UpstreamOpenRequest) -> Self
fn from(m: UpstreamOpenRequest) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamOpenResponse> for Message
impl From<UpstreamOpenResponse> for Message
Source§fn from(m: UpstreamOpenResponse) -> Self
fn from(m: UpstreamOpenResponse) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamResumeRequest> for Message
impl From<UpstreamResumeRequest> for Message
Source§fn from(m: UpstreamResumeRequest) -> Self
fn from(m: UpstreamResumeRequest) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamResumeResponse> for Message
impl From<UpstreamResumeResponse> for Message
Source§fn from(m: UpstreamResumeResponse) -> Self
fn from(m: UpstreamResumeResponse) -> Self
Converts to this type from the input type.
Source§impl Message for Message
impl Message for Message
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.impl StructuralPartialEq for Message
Source§impl TryFrom<Message> for ConnectRequest
impl TryFrom<Message> for ConnectRequest
Source§impl TryFrom<Message> for ConnectResponse
impl TryFrom<Message> for ConnectResponse
Source§impl TryFrom<Message> for Disconnect
impl TryFrom<Message> for Disconnect
Source§impl TryFrom<Message> for DownstreamCall
impl TryFrom<Message> for DownstreamCall
Source§impl TryFrom<Message> for DownstreamChunk
impl TryFrom<Message> for DownstreamChunk
Source§impl TryFrom<Message> for DownstreamChunkAck
impl TryFrom<Message> for DownstreamChunkAck
Source§impl TryFrom<Message> for DownstreamChunkAckComplete
impl TryFrom<Message> for DownstreamChunkAckComplete
Source§impl TryFrom<Message> for DownstreamCloseRequest
impl TryFrom<Message> for DownstreamCloseRequest
Source§impl TryFrom<Message> for DownstreamCloseResponse
impl TryFrom<Message> for DownstreamCloseResponse
Source§impl TryFrom<Message> for DownstreamMetadata
impl TryFrom<Message> for DownstreamMetadata
Source§impl TryFrom<Message> for DownstreamMetadataAck
impl TryFrom<Message> for DownstreamMetadataAck
Source§impl TryFrom<Message> for DownstreamOpenRequest
impl TryFrom<Message> for DownstreamOpenRequest
Source§impl TryFrom<Message> for DownstreamOpenResponse
impl TryFrom<Message> for DownstreamOpenResponse
Source§impl TryFrom<Message> for DownstreamResumeRequest
impl TryFrom<Message> for DownstreamResumeRequest
Source§impl TryFrom<Message> for DownstreamResumeResponse
impl TryFrom<Message> for DownstreamResumeResponse
Source§impl TryFrom<Message> for UpstreamCall
impl TryFrom<Message> for UpstreamCall
Source§impl TryFrom<Message> for UpstreamCallAck
impl TryFrom<Message> for UpstreamCallAck
Source§impl TryFrom<Message> for UpstreamChunk
impl TryFrom<Message> for UpstreamChunk
Source§impl TryFrom<Message> for UpstreamChunkAck
impl TryFrom<Message> for UpstreamChunkAck
Source§impl TryFrom<Message> for UpstreamCloseRequest
impl TryFrom<Message> for UpstreamCloseRequest
Source§impl TryFrom<Message> for UpstreamCloseResponse
impl TryFrom<Message> for UpstreamCloseResponse
Source§impl TryFrom<Message> for UpstreamMetadata
impl TryFrom<Message> for UpstreamMetadata
Source§impl TryFrom<Message> for UpstreamMetadataAck
impl TryFrom<Message> for UpstreamMetadataAck
Source§impl TryFrom<Message> for UpstreamOpenRequest
impl TryFrom<Message> for UpstreamOpenRequest
Source§impl TryFrom<Message> for UpstreamOpenResponse
impl TryFrom<Message> for UpstreamOpenResponse
Source§impl TryFrom<Message> for UpstreamResumeRequest
impl TryFrom<Message> for UpstreamResumeRequest
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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