Struct wasmer_journal::concrete::log_file::TxState
source · struct TxState {
underlying_file: File,
file: File,
arena: Arena,
pos: usize,
}
Fields§
§underlying_file: File
The original handle to the file
file: File
A modified handle to the original underlying file
arena: Arena
The arena necessary for serialization
pos: usize
The latest position in the file the serializator got to
Implementations§
source§impl TxState
impl TxState
fn get_serializer( &mut self, ) -> Serializer<IoWriter<&File>, ArenaHandle<'_>, Share>
fn get_serializer_with_pos( &mut self, pos: usize, ) -> Serializer<IoWriter<&File>, ArenaHandle<'_>, Share>
fn to_high<'a>( serializer: &'a mut Serializer<IoWriter<&'a File>, ArenaHandle<'a>, Share>, ) -> &'a mut HighSerializer<IoWriter<&'a File>, ArenaHandle<'a>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TxState
impl RefUnwindSafe for TxState
impl Send for TxState
impl !Sync for TxState
impl Unpin for TxState
impl UnwindSafe for TxState
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.