Enum iscp::message::Message

source ·
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§

Trait Implementations§

source§

impl Clone for Message

source§

fn clone(&self) -> Message

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Message

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<ConnectRequest> for Message

source§

fn from(m: ConnectRequest) -> Self

Converts to this type from the input type.
source§

impl From<ConnectRequest> for Message

source§

fn from(r: ConnectRequest) -> Self

Converts to this type from the input type.
source§

impl From<ConnectResponse> for Message

source§

fn from(m: ConnectResponse) -> Self

Converts to this type from the input type.
source§

impl From<ConnectResponse> for Message

source§

fn from(r: ConnectResponse) -> Self

Converts to this type from the input type.
source§

impl From<Disconnect> for Message

source§

fn from(r: Disconnect) -> Self

Converts to this type from the input type.
source§

impl From<Disconnect> for Message

source§

fn from(m: Disconnect) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamCall> for Message

source§

fn from(m: DownstreamCall) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamCall> for Message

source§

fn from(c: DownstreamCall) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamChunk> for Message

source§

fn from(m: DownstreamChunk) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamChunkAck> for Message

source§

fn from(p: DownstreamChunkAck) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamChunkAck> for Message

source§

fn from(m: DownstreamChunkAck) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamChunkAckComplete> for Message

source§

fn from(m: DownstreamChunkAckComplete) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamChunkAckComplete> for Message

source§

fn from(p: DownstreamChunkAckComplete) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamCloseRequest> for Message

source§

fn from(m: DownstreamCloseRequest) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamCloseRequest> for Message

source§

fn from(r: DownstreamCloseRequest) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamCloseResponse> for Message

source§

fn from(m: DownstreamCloseResponse) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamCloseResponse> for Message

source§

fn from(r: DownstreamCloseResponse) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamMetadata> for Message

source§

fn from(m: DownstreamMetadata) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamMetadataAck> for Message

source§

fn from(m: DownstreamMetadataAck) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamMetadataAck> for Message

source§

fn from(m: DownstreamMetadataAck) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamOpenRequest> for Message

source§

fn from(m: DownstreamOpenRequest) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamOpenRequest> for Message

source§

fn from(r: DownstreamOpenRequest) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamOpenResponse> for Message

source§

fn from(r: DownstreamOpenResponse) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamOpenResponse> for Message

source§

fn from(m: DownstreamOpenResponse) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamResumeRequest> for Message

source§

fn from(r: DownstreamResumeRequest) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamResumeRequest> for Message

source§

fn from(m: DownstreamResumeRequest) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamResumeResponse> for Message

source§

fn from(m: DownstreamResumeResponse) -> Self

Converts to this type from the input type.
source§

impl From<DownstreamResumeResponse> for Message

source§

fn from(r: DownstreamResumeResponse) -> Self

Converts to this type from the input type.
source§

impl From<Message> for Message

source§

fn from(msg: Message) -> Self

Converts to this type from the input type.
source§

impl From<Ping> for Message

source§

fn from(m: Ping) -> Self

Converts to this type from the input type.
source§

impl From<Ping> for Message

source§

fn from(p: Ping) -> Self

Converts to this type from the input type.
source§

impl From<Pong> for Message

source§

fn from(m: Pong) -> Self

Converts to this type from the input type.
source§

impl From<Pong> for Message

source§

fn from(p: Pong) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamCall> for Message

source§

fn from(c: UpstreamCall) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamCall> for Message

source§

fn from(m: UpstreamCall) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamCallAck> for Message

source§

fn from(c: UpstreamCallAck) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamCallAck> for Message

source§

fn from(m: UpstreamCallAck) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamChunk> for Message

source§

fn from(m: UpstreamChunk) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamChunkAck> for Message

source§

fn from(m: UpstreamChunkAck) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamChunkAck> for Message

source§

fn from(p: UpstreamChunkAck) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamCloseRequest> for Message

source§

fn from(r: UpstreamCloseRequest) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamCloseRequest> for Message

source§

fn from(m: UpstreamCloseRequest) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamCloseResponse> for Message

source§

fn from(r: UpstreamCloseResponse) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamCloseResponse> for Message

source§

fn from(m: UpstreamCloseResponse) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamMetadata> for Message

source§

fn from(m: UpstreamMetadata) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamMetadataAck> for Message

source§

fn from(m: UpstreamMetadataAck) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamMetadataAck> for Message

source§

fn from(m: UpstreamMetadataAck) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamOpenRequest> for Message

source§

fn from(r: UpstreamOpenRequest) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamOpenRequest> for Message

source§

fn from(m: UpstreamOpenRequest) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamOpenResponse> for Message

source§

fn from(r: UpstreamOpenResponse) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamOpenResponse> for Message

source§

fn from(m: UpstreamOpenResponse) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamResumeRequest> for Message

source§

fn from(m: UpstreamResumeRequest) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamResumeRequest> for Message

source§

fn from(r: UpstreamResumeRequest) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamResumeResponse> for Message

source§

fn from(m: UpstreamResumeResponse) -> Self

Converts to this type from the input type.
source§

impl From<UpstreamResumeResponse> for Message

source§

fn from(r: UpstreamResumeResponse) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Message

source§

fn eq(&self, other: &Message) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<DownstreamChunk> for Message

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(p: DownstreamChunk) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<DownstreamMetadata> for Message

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: DownstreamMetadata) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for ConnectRequest

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for ConnectResponse

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for Disconnect

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamCall

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamChunk

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamChunkAck

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamChunkAckComplete

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamCloseRequest

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamCloseResponse

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamMetadata

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamMetadataAck

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamOpenRequest

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamOpenResponse

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamResumeRequest

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for DownstreamResumeResponse

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for Message

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(msg: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for Ping

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for Pong

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamCall

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamCallAck

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamChunk

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamChunkAck

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamCloseRequest

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamCloseResponse

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamMetadata

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamMetadataAck

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamOpenRequest

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamOpenResponse

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamResumeRequest

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Message> for UpstreamResumeResponse

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: Message) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<UpstreamChunk> for Message

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(c: UpstreamChunk) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<UpstreamMetadata> for Message

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(m: UpstreamMetadata) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl StructuralPartialEq for Message

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more