Skip to main content

AsyncJournalWriter

Struct AsyncJournalWriter 

pub struct AsyncJournalWriter { /* private fields */ }

Implementations§

§

impl AsyncJournalWriter

pub fn new( writer: JournalWriter, batch_interval: Duration, ) -> Result<Self, JournalError>

pub fn with_defaults(writer: JournalWriter) -> Result<Self, JournalError>

pub fn append( &mut self, event: EngineEvent, ) -> Result<EngineEvent, JournalError>

pub fn next_seq(&self) -> u64

pub fn run_id(&self) -> Uuid

pub fn path(&self) -> &Path

pub fn last_record_hash(&self) -> Option<&str>

pub fn shutdown(&mut self) -> Result<(), JournalError>

pub fn into_inner(self) -> Result<JournalWriter, JournalError>

Trait Implementations§

§

impl Drop for AsyncJournalWriter

§

fn drop(&mut self)

§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

§

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

§

fn borrow(&self) -> &T

§

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

§

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

§

impl<T> From<T> for T

§

fn from(t: T) -> T

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

§

fn in_current_span(self) -> Instrumented<Self>

§

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

§

fn into(self) -> U

§

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

§

type Error = Infallible

§

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

§

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

§

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

§

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

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

§

fn with_current_subscriber(self) -> WithDispatch<Self>

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,