pub struct AsyncEvent<'a> { /* private fields */ }Expand description
Bounded generic event model that makes no provider endpoint claim.
Implementations§
Source§impl<'a> AsyncEvent<'a>
impl<'a> AsyncEvent<'a>
Sourcepub const fn new(parts: AsyncEventParts<'a>) -> Self
pub const fn new(parts: AsyncEventParts<'a>) -> Self
Creates an event from individually validated bounded fields.
Sourcepub const fn id(&self) -> AsyncResourceId<'a>
pub const fn id(&self) -> AsyncResourceId<'a>
Returns the opaque event identifier.
Sourcepub const fn kind(&self) -> AsyncResourceText<'a>
pub const fn kind(&self) -> AsyncResourceText<'a>
Returns the sensitive provider event type.
Sourcepub const fn observed_at(&self) -> AsyncResourceTimestamp<'a>
pub const fn observed_at(&self) -> AsyncResourceTimestamp<'a>
Returns the event observation timestamp.
Sourcepub const fn link(&self) -> Option<AsyncResourceLink<'a>>
pub const fn link(&self) -> Option<AsyncResourceLink<'a>>
Returns the optional non-executable related-resource link.
Sourcepub const fn message(&self) -> Option<AsyncResourceText<'a>>
pub const fn message(&self) -> Option<AsyncResourceText<'a>>
Returns the optional sensitive event message.
Trait Implementations§
Source§impl<'a> Clone for AsyncEvent<'a>
impl<'a> Clone for AsyncEvent<'a>
Source§fn clone(&self) -> AsyncEvent<'a>
fn clone(&self) -> AsyncEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for AsyncEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for AsyncEvent<'a>
impl<'a> RefUnwindSafe for AsyncEvent<'a>
impl<'a> Send for AsyncEvent<'a>
impl<'a> Sync for AsyncEvent<'a>
impl<'a> Unpin for AsyncEvent<'a>
impl<'a> UnsafeUnpin for AsyncEvent<'a>
impl<'a> UnwindSafe for AsyncEvent<'a>
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