pub enum Message {
Show 29 variants
ConnectRequest(ConnectRequest),
ConnectResponse(ConnectResponse),
Disconnect(Disconnect),
UpstreamOpenRequest(UpstreamOpenRequest),
UpstreamOpenResponse(UpstreamOpenResponse),
UpstreamResumeRequest(UpstreamResumeRequest),
UpstreamResumeResponse(UpstreamResumeResponse),
UpstreamCloseRequest(UpstreamCloseRequest),
UpstreamCloseResponse(UpstreamCloseResponse),
DownstreamOpenRequest(DownstreamOpenRequest),
DownstreamOpenResponse(DownstreamOpenResponse),
DownstreamResumeRequest(DownstreamResumeRequest),
DownstreamResumeResponse(DownstreamResumeResponse),
DownstreamCloseRequest(DownstreamCloseRequest),
DownstreamCloseResponse(DownstreamCloseResponse),
UpstreamCall(UpstreamCall),
UpstreamCallAck(UpstreamCallAck),
DownstreamCall(DownstreamCall),
Ping(Ping),
Pong(Pong),
UpstreamChunk(UpstreamChunk),
UpstreamChunkAck(UpstreamChunkAck),
DownstreamChunk(DownstreamChunk),
DownstreamChunkAck(DownstreamChunkAck),
DownstreamChunkAckComplete(DownstreamChunkAckComplete),
UpstreamMetadata(UpstreamMetadata),
UpstreamMetadataAck(UpstreamMetadataAck),
DownstreamMetadata(DownstreamMetadata),
DownstreamMetadataAck(DownstreamMetadataAck),
}Variants§
ConnectRequest(ConnectRequest)
ConnectResponse(ConnectResponse)
Disconnect(Disconnect)
UpstreamOpenRequest(UpstreamOpenRequest)
UpstreamOpenResponse(UpstreamOpenResponse)
UpstreamResumeRequest(UpstreamResumeRequest)
UpstreamResumeResponse(UpstreamResumeResponse)
UpstreamCloseRequest(UpstreamCloseRequest)
UpstreamCloseResponse(UpstreamCloseResponse)
DownstreamOpenRequest(DownstreamOpenRequest)
DownstreamOpenResponse(DownstreamOpenResponse)
DownstreamResumeRequest(DownstreamResumeRequest)
DownstreamResumeResponse(DownstreamResumeResponse)
DownstreamCloseRequest(DownstreamCloseRequest)
DownstreamCloseResponse(DownstreamCloseResponse)
UpstreamCall(UpstreamCall)
UpstreamCallAck(UpstreamCallAck)
DownstreamCall(DownstreamCall)
Ping(Ping)
Pong(Pong)
UpstreamChunk(UpstreamChunk)
UpstreamChunkAck(UpstreamChunkAck)
DownstreamChunk(DownstreamChunk)
DownstreamChunkAck(DownstreamChunkAck)
DownstreamChunkAckComplete(DownstreamChunkAckComplete)
UpstreamMetadata(UpstreamMetadata)
UpstreamMetadataAck(UpstreamMetadataAck)
DownstreamMetadata(DownstreamMetadata)
DownstreamMetadataAck(DownstreamMetadataAck)
Implementations§
source§impl Message
impl Message
pub fn request_id(&self) -> Option<RequestId>
pub fn upstream_id_alias(&self) -> Option<u32>
pub fn downstream_id_alias(&self) -> Option<u32>
Trait Implementations§
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<ConnectRequest> for Message
impl From<ConnectRequest> for Message
source§fn from(r: ConnectRequest) -> Self
fn from(r: 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<ConnectResponse> for Message
impl From<ConnectResponse> for Message
source§fn from(r: ConnectResponse) -> Self
fn from(r: ConnectResponse) -> Self
Converts to this type from the input type.
source§impl From<Disconnect> for Message
impl From<Disconnect> for Message
source§fn from(r: Disconnect) -> Self
fn from(r: Disconnect) -> 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<DownstreamCall> for Message
impl From<DownstreamCall> for Message
source§fn from(c: DownstreamCall) -> Self
fn from(c: 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(p: DownstreamChunkAck) -> Self
fn from(p: DownstreamChunkAck) -> 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<DownstreamChunkAckComplete> for Message
impl From<DownstreamChunkAckComplete> for Message
source§fn from(p: DownstreamChunkAckComplete) -> Self
fn from(p: 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<DownstreamCloseRequest> for Message
impl From<DownstreamCloseRequest> for Message
source§fn from(r: DownstreamCloseRequest) -> Self
fn from(r: 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<DownstreamCloseResponse> for Message
impl From<DownstreamCloseResponse> for Message
source§fn from(r: DownstreamCloseResponse) -> Self
fn from(r: 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<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<DownstreamOpenRequest> for Message
impl From<DownstreamOpenRequest> for Message
source§fn from(r: DownstreamOpenRequest) -> Self
fn from(r: DownstreamOpenRequest) -> Self
Converts to this type from the input type.
source§impl From<DownstreamOpenResponse> for Message
impl From<DownstreamOpenResponse> for Message
source§fn from(r: DownstreamOpenResponse) -> Self
fn from(r: DownstreamOpenResponse) -> 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(r: DownstreamResumeRequest) -> Self
fn from(r: DownstreamResumeRequest) -> 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<DownstreamResumeResponse> for Message
impl From<DownstreamResumeResponse> for Message
source§fn from(r: DownstreamResumeResponse) -> Self
fn from(r: DownstreamResumeResponse) -> Self
Converts to this type from the input type.
source§impl From<UpstreamCall> for Message
impl From<UpstreamCall> for Message
source§fn from(c: UpstreamCall) -> Self
fn from(c: UpstreamCall) -> 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(c: UpstreamCallAck) -> Self
fn from(c: UpstreamCallAck) -> 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<UpstreamChunkAck> for Message
impl From<UpstreamChunkAck> for Message
source§fn from(p: UpstreamChunkAck) -> Self
fn from(p: UpstreamChunkAck) -> Self
Converts to this type from the input type.
source§impl From<UpstreamCloseRequest> for Message
impl From<UpstreamCloseRequest> for Message
source§fn from(r: UpstreamCloseRequest) -> Self
fn from(r: UpstreamCloseRequest) -> 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(r: UpstreamCloseResponse) -> Self
fn from(r: UpstreamCloseResponse) -> 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<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(r: UpstreamOpenRequest) -> Self
fn from(r: UpstreamOpenRequest) -> 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(r: UpstreamOpenResponse) -> Self
fn from(r: UpstreamOpenResponse) -> 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<UpstreamResumeRequest> for Message
impl From<UpstreamResumeRequest> for Message
source§fn from(r: UpstreamResumeRequest) -> Self
fn from(r: 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 From<UpstreamResumeResponse> for Message
impl From<UpstreamResumeResponse> for Message
source§fn from(r: UpstreamResumeResponse) -> Self
fn from(r: UpstreamResumeResponse) -> Self
Converts to this type from the input type.
source§impl PartialEq for Message
impl PartialEq for Message
source§impl TryFrom<DownstreamChunk> for Message
impl TryFrom<DownstreamChunk> for Message
source§impl TryFrom<DownstreamMetadata> for Message
impl TryFrom<DownstreamMetadata> 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
source§impl TryFrom<Message> for UpstreamResumeResponse
impl TryFrom<Message> for UpstreamResumeResponse
source§impl TryFrom<UpstreamChunk> for Message
impl TryFrom<UpstreamChunk> for Message
source§impl TryFrom<UpstreamMetadata> for Message
impl TryFrom<UpstreamMetadata> for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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