pub enum ProgressError {
AlreadyFinished,
OutOfRange {
current: u64,
total: u64,
},
ChannelClosed,
InvalidTotal(u64),
}Expand description
进度追踪错误
Variants§
AlreadyFinished
进度已完成,无法继续操作
OutOfRange
进度值超出范围
ChannelClosed
订阅通道已关闭
InvalidTotal(u64)
无效的总数(必须 > 0)
Trait Implementations§
Source§impl Debug for ProgressError
impl Debug for ProgressError
Source§impl Display for ProgressError
impl Display for ProgressError
Source§impl Error for ProgressError
impl Error for ProgressError
1.30.0 · Source§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 · Source§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 ProgressError
impl RefUnwindSafe for ProgressError
impl Send for ProgressError
impl Sync for ProgressError
impl Unpin for ProgressError
impl UnwindSafe for ProgressError
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