pub enum SpoolError {
InvalidDuration {
actual: Duration,
minimum: Duration,
maximum: Duration,
},
CreateTemporary {
directory: PathBuf,
source: Error,
},
Initialize(Box<dyn Error + Send + Sync>),
LimitExceeded {
attempted_samples: u64,
maximum_samples: u64,
},
SampleCountOverflow,
Write(Box<dyn Error + Send + Sync>),
Empty,
Finalize(Box<dyn Error + Send + Sync>),
}Available on non-
target_family=wasm only.Variants§
InvalidDuration
CreateTemporary
Initialize(Box<dyn Error + Send + Sync>)
LimitExceeded
SampleCountOverflow
Write(Box<dyn Error + Send + Sync>)
Empty
Finalize(Box<dyn Error + Send + Sync>)
Trait Implementations§
Source§impl Debug for SpoolError
impl Debug for SpoolError
Source§impl Display for SpoolError
impl Display for SpoolError
Source§impl Error for SpoolError
impl Error for SpoolError
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()
Source§impl From<SpoolError> for CaptureError
impl From<SpoolError> for CaptureError
Source§fn from(source: SpoolError) -> Self
fn from(source: SpoolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SpoolError
impl !UnwindSafe for SpoolError
impl Freeze for SpoolError
impl Send for SpoolError
impl Sync for SpoolError
impl Unpin for SpoolError
impl UnsafeUnpin for SpoolError
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