Trait ate::redo::LogFile[][src]

pub trait LogFile where
    Self: Sync + Send
{
Show 15 methods fn rotate<'life0, 'async_trait>(
        &'life0 mut self,
        header_bytes: Vec<u8>
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn backup(
        &mut self,
        include_active_files: bool
    ) -> Result<Pin<Box<dyn Future<Output = Result<()>> + Send + Sync>>>;
fn copy<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn LogFile>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn write<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        evt: &'life1 EventData
    ) -> Pin<Box<dyn Future<Output = Result<LogLookup, SerializationError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn copy_event<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        from_log: &'life1 Box<dyn LogFile>,
        hash: AteHash
    ) -> Pin<Box<dyn Future<Output = Result<LogLookup, LoadError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn load<'life0, 'async_trait>(
        &'life0 self,
        hash: AteHash
    ) -> Pin<Box<dyn Future<Output = Result<LoadData, LoadError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn move_log_file(&mut self, new_path: &String) -> Result<()>;
fn begin_flip<'life0, 'async_trait>(
        &'life0 self,
        header_bytes: Vec<u8>
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn LogFile>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn flush<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn count(&self) -> usize;
fn size(&self) -> u64;
fn index(&self) -> u32;
fn offset(&self) -> u64;
fn header(&self, index: u32) -> Vec<u8>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn destroy(&mut self) -> Result<()>;
}

Required methods

Implementors