pub enum PerfMmapBasedMemoryReaderCreateError {
FileIo {
path: PathBuf,
source: Error,
},
FileTooShort {
path: PathBuf,
expect_length: u64,
real_length: u64,
},
}Available on crate feature
perf_memory_reader only.Expand description
Error type for PerfMmapBasedMemoryReader, only used in
PerfMmapBasedMemoryReader::new.
Variants§
FileIo
Failed to open mmapped file
FileTooShort
The mmapped file is not long enough to match the length
recorded in the perf.data.
Trait Implementations§
Source§impl Error for PerfMmapBasedMemoryReaderCreateError
impl Error for PerfMmapBasedMemoryReaderCreateError
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 PerfMmapBasedMemoryReaderCreateError
impl !RefUnwindSafe for PerfMmapBasedMemoryReaderCreateError
impl Send for PerfMmapBasedMemoryReaderCreateError
impl Sync for PerfMmapBasedMemoryReaderCreateError
impl Unpin for PerfMmapBasedMemoryReaderCreateError
impl !UnwindSafe for PerfMmapBasedMemoryReaderCreateError
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