pub struct QueuedBatches { /* private fields */ }
Expand description

Internal interface for creating batches of events.

This shouldn’t normally need to be used directly, but is exposed in case the BatchUploader interface doesn’t behave quite the way you want, you might still find value in using QueuedBatches to handle the various batch upload limits.

Implementations§

source§

impl QueuedBatches

source

pub fn add_event(&mut self, event: InputLogEvent) -> Result<(), Error>

Add a new event.

There are a couple AWS limits not enforced yet:

  • None of the log events in the batch can be more than 2 hours in the future

  • None of the log events in the batch can be older than 14 days or older than the retention period of the log group

Trait Implementations§

source§

impl Default for QueuedBatches

source§

fn default() -> QueuedBatches

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.