pub enum RsyncFailureClass {
Success,
VanishedFile,
RetryableTransport,
DiskFull,
PermissionDenied,
PartialCorruption,
Fatal,
}Expand description
Classification of a single rsync/transfer outcome.
Variants§
Success
Transfer succeeded.
VanishedFile
A source file vanished mid-transfer (exit 24 / “vanished”) — benign; retry/ignore.
RetryableTransport
A bounded, retryable SSH/network transport error.
DiskFull
The destination disk is full.
PermissionDenied
A permission error on source or destination.
PartialCorruption
A partial transfer due to a real (non-vanished) error.
Fatal
A non-retryable, fatal error.
Implementations§
Source§impl RsyncFailureClass
impl RsyncFailureClass
Sourcepub const fn is_success(self) -> bool
pub const fn is_success(self) -> bool
Is this a success?
Sourcepub const fn incident_reason(self) -> Option<IncidentReasonCode>
pub const fn incident_reason(self) -> Option<IncidentReasonCode>
The incident reason this class maps to, if any.
Sourcepub fn retry_decision(self, attempt: u32, max_attempts: u32) -> RetryDecision
pub fn retry_decision(self, attempt: u32, max_attempts: u32) -> RetryDecision
Bounded retry decision for this class on attempt (1-based) of
max_attempts.
Trait Implementations§
Source§impl Clone for RsyncFailureClass
impl Clone for RsyncFailureClass
impl Copy for RsyncFailureClass
Source§impl Debug for RsyncFailureClass
impl Debug for RsyncFailureClass
Source§impl<'de> Deserialize<'de> for RsyncFailureClass
impl<'de> Deserialize<'de> for RsyncFailureClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RsyncFailureClass
Source§impl PartialEq for RsyncFailureClass
impl PartialEq for RsyncFailureClass
Source§impl Serialize for RsyncFailureClass
impl Serialize for RsyncFailureClass
impl StructuralPartialEq for RsyncFailureClass
Auto Trait Implementations§
impl Freeze for RsyncFailureClass
impl RefUnwindSafe for RsyncFailureClass
impl Send for RsyncFailureClass
impl Sync for RsyncFailureClass
impl Unpin for RsyncFailureClass
impl UnsafeUnpin for RsyncFailureClass
impl UnwindSafe for RsyncFailureClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.