pub enum InputEvent {
PacketReceived(PacketReceived),
AbortStreamsFrom(ParticipantIdentity),
Shutdown,
}Expand description
An event fed into [IncomingStreamManager::run] by the host crate. Each corresponds to an
inbound data-stream packet (or a lifecycle signal) and carries everything the manager needs to
process it without reaching back into room state.
Variants§
PacketReceived(PacketReceived)
AbortStreamsFrom(ParticipantIdentity)
Abort every open stream sent by this participant (they disconnected mid-send).
Shutdown
Stop the run loop.
Trait Implementations§
Source§impl From<PacketReceived> for InputEvent
Convert into PacketReceived variant.
impl From<PacketReceived> for InputEvent
Convert into PacketReceived variant.
Source§fn from(v: PacketReceived) -> Self
fn from(v: PacketReceived) -> Self
Converts to this type from the input type.
Source§impl From<ParticipantIdentity> for InputEvent
Convert into AbortStreamsFrom variant.
impl From<ParticipantIdentity> for InputEvent
Convert into AbortStreamsFrom variant.
Source§fn from(v: ParticipantIdentity) -> Self
fn from(v: ParticipantIdentity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnsafeUnpin for InputEvent
impl UnwindSafe for InputEvent
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