pub fn new(event_pusher: P, granularity_ms: u64) -> Self {
        BatchLogger {
            time_ms: 0,
            event_pusher,
            _phantom: ::std::marker::PhantomData,
            granularity_ms,
            buffer: Vec::with_capacity(Self::buffer_capacity()),
        }
    }
/// Creates a new batch logger.
Creates a new batch logger.
Creates a new batch logger .
pub fn new(event_pusher: P, granularity_ms: u64) -> Self {
        BatchLogger {
            time_ms: 0,
            event_pusher,
            _phantom: ::std::marker::PhantomData,
            granularity_ms,
            buffer: Vec::with_capacity(Self::buffer_capacity()),
        }
    }
pub fn new ( event_pusher : P , granularity_ms : u64 ) -> Self { BatchLogger { time_ms : 0 , event_pusher , _phantom : :: std :: marker :: PhantomData , granularity_ms , buffer : Vec :: with_capacity ( Self :: buffer_capacity ( ) ) , } }
Creates a new batch logger.
Creates a new batch logger .
event_pusher
P
granularity_ms
u64
event_pusher
P
granularity_ms
u64