pub enum RecordHeader {
Compact(CompactRecordHeader),
Redundant(RedundantRecordHeader),
}Expand description
Unified record header for both compact and redundant formats.
Variants§
Compact(CompactRecordHeader)
Compact (new-style, MySQL 5.0+) record header.
Redundant(RedundantRecordHeader)
Redundant (old-style, pre-MySQL 5.0) record header.
Implementations§
Source§impl RecordHeader
impl RecordHeader
Sourcepub fn delete_mark(&self) -> bool
pub fn delete_mark(&self) -> bool
Delete mark flag.
Sourcepub fn rec_type(&self) -> RecordType
pub fn rec_type(&self) -> RecordType
Record type.
Sourcepub fn next_offset_raw(&self) -> i16
pub fn next_offset_raw(&self) -> i16
Raw next-offset value as stored in the header (i16 for display). For compact format this is relative; for redundant it is absolute.
Trait Implementations§
Source§impl Clone for RecordHeader
impl Clone for RecordHeader
Source§fn clone(&self) -> RecordHeader
fn clone(&self) -> RecordHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecordHeader
impl RefUnwindSafe for RecordHeader
impl Send for RecordHeader
impl Sync for RecordHeader
impl Unpin for RecordHeader
impl UnsafeUnpin for RecordHeader
impl UnwindSafe for RecordHeader
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more