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
sourceimpl 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
sourceimpl From<ConnectRequest> for Message
impl From<ConnectRequest> for Message
sourcefn from(r: ConnectRequest) -> Self
fn from(r: ConnectRequest) -> Self
Converts to this type from the input type.
sourceimpl From<ConnectRequest> for Message
impl From<ConnectRequest> for Message
sourcefn from(m: ConnectRequest) -> Self
fn from(m: ConnectRequest) -> Self
Converts to this type from the input type.
sourceimpl From<ConnectResponse> for Message
impl From<ConnectResponse> for Message
sourcefn from(r: ConnectResponse) -> Self
fn from(r: ConnectResponse) -> Self
Converts to this type from the input type.
sourceimpl From<ConnectResponse> for Message
impl From<ConnectResponse> for Message
sourcefn from(m: ConnectResponse) -> Self
fn from(m: ConnectResponse) -> Self
Converts to this type from the input type.
sourceimpl From<Disconnect> for Message
impl From<Disconnect> for Message
sourcefn from(r: Disconnect) -> Self
fn from(r: Disconnect) -> Self
Converts to this type from the input type.
sourceimpl From<Disconnect> for Message
impl From<Disconnect> for Message
sourcefn from(m: Disconnect) -> Self
fn from(m: Disconnect) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamCall> for Message
impl From<DownstreamCall> for Message
sourcefn from(c: DownstreamCall) -> Self
fn from(c: DownstreamCall) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamCall> for Message
impl From<DownstreamCall> for Message
sourcefn from(m: DownstreamCall) -> Self
fn from(m: DownstreamCall) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamChunk> for Message
impl From<DownstreamChunk> for Message
sourcefn from(m: DownstreamChunk) -> Self
fn from(m: DownstreamChunk) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamChunkAck> for Message
impl From<DownstreamChunkAck> for Message
sourcefn from(p: DownstreamChunkAck) -> Self
fn from(p: DownstreamChunkAck) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamChunkAck> for Message
impl From<DownstreamChunkAck> for Message
sourcefn from(m: DownstreamChunkAck) -> Self
fn from(m: DownstreamChunkAck) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamChunkAckComplete> for Message
impl From<DownstreamChunkAckComplete> for Message
sourcefn from(p: DownstreamChunkAckComplete) -> Self
fn from(p: DownstreamChunkAckComplete) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamChunkAckComplete> for Message
impl From<DownstreamChunkAckComplete> for Message
sourcefn from(m: DownstreamChunkAckComplete) -> Self
fn from(m: DownstreamChunkAckComplete) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamCloseRequest> for Message
impl From<DownstreamCloseRequest> for Message
sourcefn from(r: DownstreamCloseRequest) -> Self
fn from(r: DownstreamCloseRequest) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamCloseRequest> for Message
impl From<DownstreamCloseRequest> for Message
sourcefn from(m: DownstreamCloseRequest) -> Self
fn from(m: DownstreamCloseRequest) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamCloseResponse> for Message
impl From<DownstreamCloseResponse> for Message
sourcefn from(r: DownstreamCloseResponse) -> Self
fn from(r: DownstreamCloseResponse) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamCloseResponse> for Message
impl From<DownstreamCloseResponse> for Message
sourcefn from(m: DownstreamCloseResponse) -> Self
fn from(m: DownstreamCloseResponse) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamMetadata> for Message
impl From<DownstreamMetadata> for Message
sourcefn from(m: DownstreamMetadata) -> Self
fn from(m: DownstreamMetadata) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamMetadataAck> for Message
impl From<DownstreamMetadataAck> for Message
sourcefn from(m: DownstreamMetadataAck) -> Self
fn from(m: DownstreamMetadataAck) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamMetadataAck> for Message
impl From<DownstreamMetadataAck> for Message
sourcefn from(m: DownstreamMetadataAck) -> Self
fn from(m: DownstreamMetadataAck) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamOpenRequest> for Message
impl From<DownstreamOpenRequest> for Message
sourcefn from(r: DownstreamOpenRequest) -> Self
fn from(r: DownstreamOpenRequest) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamOpenRequest> for Message
impl From<DownstreamOpenRequest> for Message
sourcefn from(m: DownstreamOpenRequest) -> Self
fn from(m: DownstreamOpenRequest) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamOpenResponse> for Message
impl From<DownstreamOpenResponse> for Message
sourcefn from(r: DownstreamOpenResponse) -> Self
fn from(r: DownstreamOpenResponse) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamOpenResponse> for Message
impl From<DownstreamOpenResponse> for Message
sourcefn from(m: DownstreamOpenResponse) -> Self
fn from(m: DownstreamOpenResponse) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamResumeRequest> for Message
impl From<DownstreamResumeRequest> for Message
sourcefn from(r: DownstreamResumeRequest) -> Self
fn from(r: DownstreamResumeRequest) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamResumeRequest> for Message
impl From<DownstreamResumeRequest> for Message
sourcefn from(m: DownstreamResumeRequest) -> Self
fn from(m: DownstreamResumeRequest) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamResumeResponse> for Message
impl From<DownstreamResumeResponse> for Message
sourcefn from(r: DownstreamResumeResponse) -> Self
fn from(r: DownstreamResumeResponse) -> Self
Converts to this type from the input type.
sourceimpl From<DownstreamResumeResponse> for Message
impl From<DownstreamResumeResponse> for Message
sourcefn from(m: DownstreamResumeResponse) -> Self
fn from(m: DownstreamResumeResponse) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamCall> for Message
impl From<UpstreamCall> for Message
sourcefn from(c: UpstreamCall) -> Self
fn from(c: UpstreamCall) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamCall> for Message
impl From<UpstreamCall> for Message
sourcefn from(m: UpstreamCall) -> Self
fn from(m: UpstreamCall) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamCallAck> for Message
impl From<UpstreamCallAck> for Message
sourcefn from(c: UpstreamCallAck) -> Self
fn from(c: UpstreamCallAck) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamCallAck> for Message
impl From<UpstreamCallAck> for Message
sourcefn from(m: UpstreamCallAck) -> Self
fn from(m: UpstreamCallAck) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamChunk> for Message
impl From<UpstreamChunk> for Message
sourcefn from(m: UpstreamChunk) -> Self
fn from(m: UpstreamChunk) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamChunkAck> for Message
impl From<UpstreamChunkAck> for Message
sourcefn from(p: UpstreamChunkAck) -> Self
fn from(p: UpstreamChunkAck) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamChunkAck> for Message
impl From<UpstreamChunkAck> for Message
sourcefn from(m: UpstreamChunkAck) -> Self
fn from(m: UpstreamChunkAck) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamCloseRequest> for Message
impl From<UpstreamCloseRequest> for Message
sourcefn from(r: UpstreamCloseRequest) -> Self
fn from(r: UpstreamCloseRequest) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamCloseRequest> for Message
impl From<UpstreamCloseRequest> for Message
sourcefn from(m: UpstreamCloseRequest) -> Self
fn from(m: UpstreamCloseRequest) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamCloseResponse> for Message
impl From<UpstreamCloseResponse> for Message
sourcefn from(r: UpstreamCloseResponse) -> Self
fn from(r: UpstreamCloseResponse) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamCloseResponse> for Message
impl From<UpstreamCloseResponse> for Message
sourcefn from(m: UpstreamCloseResponse) -> Self
fn from(m: UpstreamCloseResponse) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamMetadata> for Message
impl From<UpstreamMetadata> for Message
sourcefn from(m: UpstreamMetadata) -> Self
fn from(m: UpstreamMetadata) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamMetadataAck> for Message
impl From<UpstreamMetadataAck> for Message
sourcefn from(m: UpstreamMetadataAck) -> Self
fn from(m: UpstreamMetadataAck) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamMetadataAck> for Message
impl From<UpstreamMetadataAck> for Message
sourcefn from(m: UpstreamMetadataAck) -> Self
fn from(m: UpstreamMetadataAck) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamOpenRequest> for Message
impl From<UpstreamOpenRequest> for Message
sourcefn from(r: UpstreamOpenRequest) -> Self
fn from(r: UpstreamOpenRequest) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamOpenRequest> for Message
impl From<UpstreamOpenRequest> for Message
sourcefn from(m: UpstreamOpenRequest) -> Self
fn from(m: UpstreamOpenRequest) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamOpenResponse> for Message
impl From<UpstreamOpenResponse> for Message
sourcefn from(r: UpstreamOpenResponse) -> Self
fn from(r: UpstreamOpenResponse) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamOpenResponse> for Message
impl From<UpstreamOpenResponse> for Message
sourcefn from(m: UpstreamOpenResponse) -> Self
fn from(m: UpstreamOpenResponse) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamResumeRequest> for Message
impl From<UpstreamResumeRequest> for Message
sourcefn from(r: UpstreamResumeRequest) -> Self
fn from(r: UpstreamResumeRequest) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamResumeRequest> for Message
impl From<UpstreamResumeRequest> for Message
sourcefn from(m: UpstreamResumeRequest) -> Self
fn from(m: UpstreamResumeRequest) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamResumeResponse> for Message
impl From<UpstreamResumeResponse> for Message
sourcefn from(r: UpstreamResumeResponse) -> Self
fn from(r: UpstreamResumeResponse) -> Self
Converts to this type from the input type.
sourceimpl From<UpstreamResumeResponse> for Message
impl From<UpstreamResumeResponse> for Message
sourcefn from(m: UpstreamResumeResponse) -> Self
fn from(m: UpstreamResumeResponse) -> Self
Converts to this type from the input type.
sourceimpl TryFrom<DownstreamChunk> for Message
impl TryFrom<DownstreamChunk> for Message
sourceimpl TryFrom<DownstreamMetadata> for Message
impl TryFrom<DownstreamMetadata> for Message
sourceimpl TryFrom<Message> for ConnectRequest
impl TryFrom<Message> for ConnectRequest
sourceimpl TryFrom<Message> for ConnectResponse
impl TryFrom<Message> for ConnectResponse
sourceimpl TryFrom<Message> for Disconnect
impl TryFrom<Message> for Disconnect
sourceimpl TryFrom<Message> for DownstreamCall
impl TryFrom<Message> for DownstreamCall
sourceimpl TryFrom<Message> for DownstreamChunk
impl TryFrom<Message> for DownstreamChunk
sourceimpl TryFrom<Message> for DownstreamChunkAck
impl TryFrom<Message> for DownstreamChunkAck
sourceimpl TryFrom<Message> for DownstreamChunkAckComplete
impl TryFrom<Message> for DownstreamChunkAckComplete
sourceimpl TryFrom<Message> for DownstreamCloseRequest
impl TryFrom<Message> for DownstreamCloseRequest
sourceimpl TryFrom<Message> for DownstreamCloseResponse
impl TryFrom<Message> for DownstreamCloseResponse
sourceimpl TryFrom<Message> for DownstreamMetadata
impl TryFrom<Message> for DownstreamMetadata
sourceimpl TryFrom<Message> for DownstreamMetadataAck
impl TryFrom<Message> for DownstreamMetadataAck
sourceimpl TryFrom<Message> for DownstreamOpenRequest
impl TryFrom<Message> for DownstreamOpenRequest
sourceimpl TryFrom<Message> for DownstreamOpenResponse
impl TryFrom<Message> for DownstreamOpenResponse
sourceimpl TryFrom<Message> for DownstreamResumeRequest
impl TryFrom<Message> for DownstreamResumeRequest
sourceimpl TryFrom<Message> for DownstreamResumeResponse
impl TryFrom<Message> for DownstreamResumeResponse
sourceimpl TryFrom<Message> for UpstreamCall
impl TryFrom<Message> for UpstreamCall
sourceimpl TryFrom<Message> for UpstreamCallAck
impl TryFrom<Message> for UpstreamCallAck
sourceimpl TryFrom<Message> for UpstreamChunk
impl TryFrom<Message> for UpstreamChunk
sourceimpl TryFrom<Message> for UpstreamChunkAck
impl TryFrom<Message> for UpstreamChunkAck
sourceimpl TryFrom<Message> for UpstreamCloseRequest
impl TryFrom<Message> for UpstreamCloseRequest
sourceimpl TryFrom<Message> for UpstreamCloseResponse
impl TryFrom<Message> for UpstreamCloseResponse
sourceimpl TryFrom<Message> for UpstreamMetadata
impl TryFrom<Message> for UpstreamMetadata
sourceimpl TryFrom<Message> for UpstreamMetadataAck
impl TryFrom<Message> for UpstreamMetadataAck
sourceimpl TryFrom<Message> for UpstreamOpenRequest
impl TryFrom<Message> for UpstreamOpenRequest
sourceimpl TryFrom<Message> for UpstreamOpenResponse
impl TryFrom<Message> for UpstreamOpenResponse
sourceimpl TryFrom<Message> for UpstreamResumeRequest
impl TryFrom<Message> for UpstreamResumeRequest
sourceimpl TryFrom<Message> for UpstreamResumeResponse
impl TryFrom<Message> for UpstreamResumeResponse
sourceimpl TryFrom<UpstreamChunk> for Message
impl TryFrom<UpstreamChunk> for Message
sourceimpl 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
impl<T> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove
Any::type_id_compat and use StdAny::type_id instead.
https://github.com/rust-lang/rust/issues/27745 Read more
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more