#[non_exhaustive]pub enum SrtEvent {
Payload(Bytes),
Damage(Damage),
}Available on crate feature
tokio only.Expand description
One item the driver hands the application handle, in delivery order.
SRT had no event channel before the damage report: SrtSocket::recv
returned payloads only. SrtSocket::recv_event is that channel now, and
recv stays the payload-only convenience over it. A refused report (the
caller’s DamagePolicy saying Fail) is not an item: it ends the
connection and recv_event returns it as the error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Payload(Bytes)
A delivered application payload.
Damage(Damage)
Content this connection gave up on — the one
Damage report, in order with the payloads around it.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SrtEvent
impl Forget for SrtEvent
impl Move for SrtEvent
impl RefUnwindSafe for SrtEvent
impl Send for SrtEvent
impl Sync for SrtEvent
impl Unpin for SrtEvent
impl UnsafeUnpin for SrtEventwhere
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
impl UnwindSafe for SrtEventwhere
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
NonZero<u32>: UnwindSafe,
&'static str: UnwindSafe,
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