pub struct Occurrence<T> {
pub payload: Result<T, Detection>,
pub envelope: Envelope,
}Expand description
An event occurrence as a consumer receives it.
Fields§
§payload: Result<T, Detection>The payload, or what the binding detected when the payload failed its check.
envelope: EnvelopeThe sender’s timestamp and sequence number.
Trait Implementations§
Source§impl<T: Clone> Clone for Occurrence<T>
impl<T: Clone> Clone for Occurrence<T>
impl<T: Copy> Copy for Occurrence<T>
Source§impl<T: Debug> Debug for Occurrence<T>
impl<T: Debug> Debug for Occurrence<T>
impl<T: Eq> Eq for Occurrence<T>
Source§impl<T: PartialEq> PartialEq for Occurrence<T>
impl<T: PartialEq> PartialEq for Occurrence<T>
impl<T: PartialEq> StructuralPartialEq for Occurrence<T>
Auto Trait Implementations§
impl<T> Freeze for Occurrence<T>
impl<T> RefUnwindSafe for Occurrence<T>
impl<T> Send for Occurrence<T>
impl<T> Sync for Occurrence<T>
impl<T> Unpin for Occurrence<T>
impl<T> UnsafeUnpin for Occurrence<T>
impl<T> UnwindSafe for Occurrence<T>
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