#[repr(u32)]pub enum ProgressRetVal {
Continue = 0,
Stop = 2,
Cancel = 1,
Quiet = 3,
}
Available on crate feature
fs
only.Expand description
Return value used in ProgressCallback
to control the ongoing file transfer.
Variants§
Continue = 0
Continue the operation.
Stop = 2
Stop the operation with the option of continuing later.
Cancel = 1
Cancel the operation.
Quiet = 3
Continue but stop calling the user callback.
Trait Implementations§
Source§impl Clone for ProgressRetVal
impl Clone for ProgressRetVal
Source§fn clone(&self) -> ProgressRetVal
fn clone(&self) -> ProgressRetVal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProgressRetVal
impl Debug for ProgressRetVal
Source§impl Default for ProgressRetVal
impl Default for ProgressRetVal
Source§fn default() -> ProgressRetVal
fn default() -> ProgressRetVal
Returns the “default value” for a type. Read more
Source§impl From<ProgressRetVal> for u32
impl From<ProgressRetVal> for u32
Source§fn from(enum_value: ProgressRetVal) -> Self
fn from(enum_value: ProgressRetVal) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProgressRetVal
impl PartialEq for ProgressRetVal
impl Copy for ProgressRetVal
impl Eq for ProgressRetVal
impl StructuralPartialEq for ProgressRetVal
Auto Trait Implementations§
impl Freeze for ProgressRetVal
impl RefUnwindSafe for ProgressRetVal
impl Send for ProgressRetVal
impl Sync for ProgressRetVal
impl Unpin for ProgressRetVal
impl UnwindSafe for ProgressRetVal
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