pub struct StreamRepairer { /* private fields */ }Implementations§
Source§impl StreamRepairer
impl StreamRepairer
pub fn new() -> StreamRepairer
pub fn push(&mut self, bytes: &[u8])
Sourcepub fn append_repair(&self) -> AppendRepair
pub fn append_repair(&self) -> AppendRepair
Append-only repair: keep already-emitted bytes, append only closers.
Suited to streaming passthrough. See AppendRepair.
pub fn finish(&self) -> Repair
Trait Implementations§
Source§impl Default for StreamRepairer
impl Default for StreamRepairer
Source§fn default() -> StreamRepairer
fn default() -> StreamRepairer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamRepairer
impl RefUnwindSafe for StreamRepairer
impl Send for StreamRepairer
impl Sync for StreamRepairer
impl Unpin for StreamRepairer
impl UnsafeUnpin for StreamRepairer
impl UnwindSafe for StreamRepairer
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