[−][src]Struct simple_wal::LogEntry
An entry in the log.
Ownership of this struct represents that the file has been seeked to the start of the log entry.
Implementations
impl<'l> LogEntry<'l>
[src]
pub fn index(&self) -> u64
[src]
pub fn read_to_next<W: Write>(
self,
write: &mut W
) -> Result<Option<LogEntry<'l>>, LogError>
[src]
self,
write: &mut W
) -> Result<Option<LogEntry<'l>>, LogError>
Reads into the io::Write and returns the next log entry if in-bounds.
pub fn seek(self, to_index: u64) -> Result<LogEntry<'l>, LogError>
[src]
Seek forwards to the index. Only forwards traversal is allowed.
Auto Trait Implementations
impl<'l> RefUnwindSafe for LogEntry<'l>
impl<'l> Send for LogEntry<'l>
impl<'l> Sync for LogEntry<'l>
impl<'l> Unpin for LogEntry<'l>
impl<'l> !UnwindSafe for LogEntry<'l>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,