Struct FinalizeUndelivered
pub struct FinalizeUndelivered {
pub reason: String,
}Expand description
Error a Channel::finalize_draft implementation returns when it could not
deliver any part of the final answer and the platform has asked it not to
send again yet (for example a Telegram flood limit with retry_after).
Nothing is on the wire, but a caller that falls back to resending the whole
answer would only extend the platform’s penalty. Callers must treat this as
failed delivery and must NOT resend.
Fields§
§reason: StringTrait Implementations§
Source§impl Debug for FinalizeUndelivered
impl Debug for FinalizeUndelivered
Source§impl Display for FinalizeUndelivered
impl Display for FinalizeUndelivered
Source§impl Error for FinalizeUndelivered
impl Error for FinalizeUndelivered
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 FinalizeUndelivered
impl RefUnwindSafe for FinalizeUndelivered
impl Send for FinalizeUndelivered
impl Sync for FinalizeUndelivered
impl Unpin for FinalizeUndelivered
impl UnsafeUnpin for FinalizeUndelivered
impl UnwindSafe for FinalizeUndelivered
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