JournalWriter

Struct JournalWriter 

pub struct JournalWriter<W: JournalSink> { /* private fields */ }

Implementations§

§

impl<W: JournalSink> JournalWriter<W>

pub fn new(sink: W, config: WriterConfig) -> Self

pub fn append( &mut self, timestamp_ns: i64, payload_kind: &str, payload: &[u8], ) -> Result<u64>

pub fn is_chained(&self) -> bool

pub fn next_seq(&self) -> u64

pub fn sync(&mut self) -> Result<()>

pub fn get_ref(&self) -> &W

pub fn into_inner(self) -> W

§

impl<W: JournalStore> JournalWriter<W>

pub fn resume(store: W, config: WriterConfig) -> Result<Self>

Trait Implementations§

§

impl<W: Debug + JournalSink> Debug for JournalWriter<W>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations§

§

impl<W> Freeze for JournalWriter<W>
where W: Freeze,

§

impl<W> RefUnwindSafe for JournalWriter<W>
where W: RefUnwindSafe,

§

impl<W> Send for JournalWriter<W>
where W: Send,

§

impl<W> Sync for JournalWriter<W>
where W: Sync,

§

impl<W> Unpin for JournalWriter<W>
where W: Unpin,

§

impl<W> UnwindSafe for JournalWriter<W>
where W: UnwindSafe,

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, 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>