Skip to main content

StreamClosed

Struct StreamClosed 

Source
pub struct StreamClosed {
    pub stream_id: StreamId,
    pub participant_identity: ParticipantIdentity,
    pub topic: String,
}
Expand description

A stream previously announced via StreamOpened has terminated and will produce no further data: its trailer arrived, its inline payload completed, it failed with an error, or it was aborted.

Emitted exactly once per opened stream. Hosts delivering streams on ordered topics use this to know when a stream’s handler can be considered finished on the wire (a trailer alone is not enough: inline single-packet streams never receive one).

Fields§

§stream_id: StreamId§participant_identity: ParticipantIdentity§topic: String

Topic the stream was opened on.

Trait Implementations§

Source§

impl From<StreamClosed> for OutputEvent

Convert into StreamClosed variant.

Source§

fn from(v: StreamClosed) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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.

Source§

impl<T, U> Into<U> for T
where 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.

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.