pub struct Pending<'a, T> { /* private fields */ }Expand description
An encoded record the caller has not yet acknowledged writing.
Returned by Encoder::encode. Write the payload, then
commit.
A frame that is never committed never reached the wire. With compression on that is
unrecoverable within the group: the window is ahead of what the consumer holds, and a log has no
keyframe to resynchronize on the way snapshot does. So the encoder refuses
to encode anything further (Error::Desync) until the caller rolls a new group and calls
Encoder::reset. Without compression each record stands alone, so a dropped one leaves a gap
in the log but nothing undecodable, and encoding continues.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !Freeze for Pending<'a, T>
impl<'a, T> !UnwindSafe for Pending<'a, T>
impl<'a, T> RefUnwindSafe for Pending<'a, T>
impl<'a, T> Send for Pending<'a, T>
impl<'a, T> Sync for Pending<'a, T>
impl<'a, T> Unpin for Pending<'a, T>
impl<'a, T> UnsafeUnpin for Pending<'a, T>
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