pub struct LogHeader {
pub magic: u8,
pub seq: u16,
pub begin_hour: u8,
pub end_hour: u8,
pub len: u32,
pub client_pubkey: [u8; 64],
}Expand description
Decoded header for one xlog block.
Fields§
§magic: u8Magic byte describing compression, append mode, and crypto usage.
seq: u16Sequence number. Async blocks increment and skip zero; sync blocks use zero.
begin_hour: u8Begin hour in local time.
end_hour: u8End hour in local time.
len: u32Payload byte length, excluding header and tail marker.
client_pubkey: [u8; 64]Optional client public key bytes used by encrypted logs.
Implementations§
Trait Implementations§
impl Copy for LogHeader
impl Eq for LogHeader
impl StructuralPartialEq for LogHeader
Auto Trait Implementations§
impl Freeze for LogHeader
impl RefUnwindSafe for LogHeader
impl Send for LogHeader
impl Sync for LogHeader
impl Unpin for LogHeader
impl UnsafeUnpin for LogHeader
impl UnwindSafe for LogHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.