pub struct DecodedLogs<E> {
pub entries: Vec<DecodedEntry<E>>,
pub uuid_dict: HashMap<Uuid, u32>,
pub last_timestamp: u64,
pub server_mode: bool,
}Expand description
The result of decoding a whole segment, including the end state needed to append more entries to it.
Fields§
§entries: Vec<DecodedEntry<E>>The decoded entries, in segment order.
uuid_dict: HashMap<Uuid, u32>The UUID dictionary built while decoding (uuid → id), for an encoder
that continues the segment.
last_timestamp: u64The last absolute timestamp seen, the base for further delta encoding.
server_mode: boolWhether the segment was written in server mode (entries carry user ids).
Auto Trait Implementations§
impl<E> Freeze for DecodedLogs<E>
impl<E> RefUnwindSafe for DecodedLogs<E>where
E: RefUnwindSafe,
impl<E> Send for DecodedLogs<E>where
E: Send,
impl<E> Sync for DecodedLogs<E>where
E: Sync,
impl<E> Unpin for DecodedLogs<E>where
E: Unpin,
impl<E> UnsafeUnpin for DecodedLogs<E>
impl<E> UnwindSafe for DecodedLogs<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more