pub struct DbRawBytesSpec { /* private fields */ }Expand description
Stores raw bytes from the DB along with the flag indicating whether data come from legacy or current version of the DB.
Implementations§
Source§impl DbRawBytesSpec
impl DbRawBytesSpec
Sourcepub fn new_legacy(raw_bytes: &[u8]) -> Self
pub fn new_legacy(raw_bytes: &[u8]) -> Self
Creates a variant indicating that raw bytes are coming from the legacy database.
Sourcepub fn new_current(raw_bytes: &[u8]) -> Self
pub fn new_current(raw_bytes: &[u8]) -> Self
Creates a variant indicating that raw bytes are coming from the current database.
Sourcepub fn into_raw_bytes(self) -> Vec<u8> ⓘ
pub fn into_raw_bytes(self) -> Vec<u8> ⓘ
Raw bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbRawBytesSpec
impl RefUnwindSafe for DbRawBytesSpec
impl Send for DbRawBytesSpec
impl Sync for DbRawBytesSpec
impl Unpin for DbRawBytesSpec
impl UnwindSafe for DbRawBytesSpec
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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