pub struct StreamEncoder { /* private fields */ }Expand description
Stream encoder facade: prepares frames for a module and for deltas.
Implementations§
Source§impl StreamEncoder
impl StreamEncoder
Sourcepub fn new(module: &InfinityModule, chunk: usize) -> Result<Self>
pub fn new(module: &InfinityModule, chunk: usize) -> Result<Self>
Encode module as a complete generation.
Sourcepub fn push_delta(
&mut self,
base: &InfinityModule,
ops: &[DeltaOp],
) -> Result<()>
pub fn push_delta( &mut self, base: &InfinityModule, ops: &[DeltaOp], ) -> Result<()>
Append an incremental generation: the delta ops plus the closing end frame carrying the hash of the whole re-encoded module.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamEncoder
impl RefUnwindSafe for StreamEncoder
impl Send for StreamEncoder
impl Sync for StreamEncoder
impl Unpin for StreamEncoder
impl UnsafeUnpin for StreamEncoder
impl UnwindSafe for StreamEncoder
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