pub struct AsyncEventBatch<'a> { /* private fields */ }Expand description
Borrowed event batch with an unconditional event-count bound.
Implementations§
Source§impl<'a> AsyncEventBatch<'a>
impl<'a> AsyncEventBatch<'a>
Sourcepub fn new(
events: &'a [AsyncEvent<'a>],
) -> Result<Self, AsyncResourceValidationError>
pub fn new( events: &'a [AsyncEvent<'a>], ) -> Result<Self, AsyncResourceValidationError>
Validates the complete event-count bound before exposing the batch.
Sourcepub const fn events(&self) -> &'a [AsyncEvent<'a>]
pub const fn events(&self) -> &'a [AsyncEvent<'a>]
Returns the complete bounded event slice.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AsyncEventBatch<'a>
impl<'a> RefUnwindSafe for AsyncEventBatch<'a>
impl<'a> Send for AsyncEventBatch<'a>
impl<'a> Sync for AsyncEventBatch<'a>
impl<'a> Unpin for AsyncEventBatch<'a>
impl<'a> UnsafeUnpin for AsyncEventBatch<'a>
impl<'a> UnwindSafe for AsyncEventBatch<'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