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: StringTopic the stream was opened on.
Trait Implementations§
Source§impl From<StreamClosed> for OutputEvent
Convert into StreamClosed variant.
impl From<StreamClosed> for OutputEvent
Convert into StreamClosed variant.
Source§fn from(v: StreamClosed) -> Self
fn from(v: StreamClosed) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamClosed
impl RefUnwindSafe for StreamClosed
impl Send for StreamClosed
impl Sync for StreamClosed
impl Unpin for StreamClosed
impl UnsafeUnpin for StreamClosed
impl UnwindSafe for StreamClosed
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