pub struct FrontierCodec { /* private fields */ }Expand description
A narrow frontier handle codec which keeps its live Store allocated.
Within a process, only the issuing instance decodes its unchanged rows. Another codec over the same Store does not recover them. There is no file import, restart or Store-compaction interface.
Implementations§
Source§impl FrontierCodec
impl FrontierCodec
Sourcepub fn new(store: Arc<Store>, variables: usize) -> Result<Self, Error>
pub fn new(store: Arc<Store>, variables: usize) -> Result<Self, Error>
Retains the Store and allocates a private, nonreused process lifetime token.
§Errors
The process exhausted its codec tokens or a row cannot fit address space.
Sourcepub fn encode(
&self,
identity: &[Handle],
original: &[Handle],
) -> Result<Vec<u8>, Error>
pub fn encode( &self, identity: &[Handle], original: &[Handle], ) -> Result<Vec<u8>, Error>
Encodes complete canonical and original rows without converting values.
§Errors
Wrong widths, transient/unknown/lazy handles, a noncanonical identity, poisoned Store, or allocation failure. No normalization is performed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FrontierCodec
impl !UnwindSafe for FrontierCodec
impl Forget for FrontierCodec
impl Freeze for FrontierCodec
impl Move for FrontierCodec
impl Send for FrontierCodec
impl Sync for FrontierCodec
impl Unpin for FrontierCodec
impl UnsafeUnpin for FrontierCodec
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