pub struct RemoteFailure {
pub code: RemoteCode,
pub detail: String,
pub charge: Charge,
pub remote: RemoteEnd,
}Expand description
A classified remote failure, before it becomes a report.
Fields§
§code: RemoteCode§detail: StringFree text after the remote:<code> prefix; never a credential.
charge: Charge§remote: RemoteEndImplementations§
Source§impl RemoteFailure
impl RemoteFailure
Sourcepub fn new(
code: RemoteCode,
detail: impl Into<String>,
reported: Option<Charge>,
refusals_charged: bool,
sent: bool,
) -> Self
pub fn new( code: RemoteCode, detail: impl Into<String>, reported: Option<Charge>, refusals_charged: bool, sent: bool, ) -> Self
A failure with the charge chosen by charge_for and the remote end
by remote_end. Not for cancelled, which
crate::cancel::cancelled_report builds.
Sourcepub fn report(&self) -> AttemptReport
pub fn report(&self) -> AttemptReport
The seam’s report: the code’s class and a remote:<code> detail.
Trait Implementations§
Source§impl Clone for RemoteFailure
impl Clone for RemoteFailure
Source§impl Debug for RemoteFailure
impl Debug for RemoteFailure
impl Eq for RemoteFailure
Source§impl PartialEq for RemoteFailure
impl PartialEq for RemoteFailure
impl StructuralPartialEq for RemoteFailure
Auto Trait Implementations§
impl Freeze for RemoteFailure
impl RefUnwindSafe for RemoteFailure
impl Send for RemoteFailure
impl Sync for RemoteFailure
impl Unpin for RemoteFailure
impl UnsafeUnpin for RemoteFailure
impl UnwindSafe for RemoteFailure
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