pub struct LLToCore<T, C> { /* private fields */ }Expand description
Adapts an LL store to the Core Store interface.
This bridge:
- Converts
&[&[u8]]paths to validatedPath - Wraps returned bytes as
Record::Rawwith a format hint - Serializes
Recordto bytes for writes
Implementations§
Source§impl<T, C> LLToCore<T, C>
impl<T, C> LLToCore<T, C>
Sourcepub fn new(inner: T, codec: C, format: Format) -> Self
pub fn new(inner: T, codec: C, format: Format) -> Self
Create a new bridge with the same format for reads and writes.
Sourcepub fn with_formats(
inner: T,
codec: C,
read_format: Format,
write_format: Format,
) -> Self
pub fn with_formats( inner: T, codec: C, read_format: Format, write_format: Format, ) -> Self
Create a new bridge with different formats for reads and writes.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Unwrap, returning the inner LL store.
Trait Implementations§
Auto Trait Implementations§
impl<T, C> Freeze for LLToCore<T, C>
impl<T, C> RefUnwindSafe for LLToCore<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for LLToCore<T, C>
impl<T, C> Sync for LLToCore<T, C>
impl<T, C> Unpin for LLToCore<T, C>
impl<T, C> UnsafeUnpin for LLToCore<T, C>where
T: UnsafeUnpin,
C: UnsafeUnpin,
impl<T, C> UnwindSafe for LLToCore<T, C>where
T: UnwindSafe,
C: 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