#[non_exhaustive]pub enum DeliveredItem {
Payload(Payload),
Damage(Damage),
Refused(DamageError),
Ended(LinkEnd),
}Available on crate feature
link only.Expand description
One item a link hands its host, in the order the stream needs it.
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(Payload)
A delivered application payload.
Damage(Damage)
A Damage report.
Refused(DamageError)
The caller’s DamagePolicy refused a report, naming the same report: the link has ended.
Ended(LinkEnd)
How the link ended.
Implementations§
Trait Implementations§
Source§impl Clone for DeliveredItem
impl Clone for DeliveredItem
Source§impl Debug for DeliveredItem
impl Debug for DeliveredItem
Source§impl Display for DeliveredItem
impl Display for DeliveredItem
impl Eq for DeliveredItem
Source§impl PartialEq for DeliveredItem
impl PartialEq for DeliveredItem
impl StructuralPartialEq for DeliveredItem
Auto Trait Implementations§
impl Forget for DeliveredItem
impl Freeze for DeliveredItem
impl Move for DeliveredItem
impl RefUnwindSafe for DeliveredItem
impl Send for DeliveredItem
impl Sync for DeliveredItem
impl Unpin for DeliveredItem
impl UnsafeUnpin for DeliveredItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const Damage is !null: UnsafeUnpin,
PhantomData<Damage>: UnsafeUnpin,
impl UnwindSafe for DeliveredItemwhere
RawVecInner: UnwindSafe,
NonZero<u32>: UnwindSafe,
&'static str: UnwindSafe,
BoxRaw<Damage>: 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