pub enum CallbackType {
Info,
Progress,
Finish,
Error,
}
Expand description
Represents the type of callback being invoked during an operation.
The CallbackType
enum is used to categorize the nature of the callback, allowing the caller
to differentiate between informational messages, progress updates, and errors. This is particularly
useful in scenarios where different types of feedback need to be handled in distinct ways.
§Variants
Info
: Indicates a general informational message, such as status updates or non-critical notifications.Progress
: Indicates that the callback is providing progress updates, typically involving downloaded bytes or percentages.Finish
: Indicates that an operation has completed successfully, providing a final status message.Error
: Indicates that an error has occurred and provides details related to the issue.
Variants§
Info
Conveys a general informational message.
Progress
Indicates that progress information is being reported (e.g., download progress).
Finish
Indicates that an operation has finished successfully.
Error
Signals that an error has occurred and provides error details.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallbackType
impl RefUnwindSafe for CallbackType
impl Send for CallbackType
impl Sync for CallbackType
impl Unpin for CallbackType
impl UnwindSafe for CallbackType
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