Struct FinalizePartialDelivery
pub struct FinalizePartialDelivery {
pub delivered: usize,
}Expand description
Error a Channel::finalize_draft implementation returns when it posted
part of a chunked final answer and could not deliver the remainder. The
accepted prefix is already on the wire, so a caller that falls back to
resending the whole answer would duplicate the delivered chunks. Callers must
treat this as degraded-but-committed delivery: do NOT resend the full answer;
the undelivered suffix is lost. delivered is the number of physical chunks
accepted before the failure, for logging only.
Fields§
§delivered: usizeTrait Implementations§
Source§impl Debug for FinalizePartialDelivery
impl Debug for FinalizePartialDelivery
Source§impl Display for FinalizePartialDelivery
impl Display for FinalizePartialDelivery
Source§impl Error for FinalizePartialDelivery
impl Error for FinalizePartialDelivery
1.30.0 · §fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · §fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FinalizePartialDelivery
impl RefUnwindSafe for FinalizePartialDelivery
impl Send for FinalizePartialDelivery
impl Sync for FinalizePartialDelivery
impl Unpin for FinalizePartialDelivery
impl UnsafeUnpin for FinalizePartialDelivery
impl UnwindSafe for FinalizePartialDelivery
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