pub enum PerfBufferError {
InvalidPageCount {
page_count: usize,
},
OpenError {
io_error: Error,
},
MMapError {
io_error: Error,
},
PerfEventEnableError {
io_error: Error,
},
NoBuffers,
MoreSpaceNeeded {
size: usize,
},
IOError(Error),
}
Expand description
Perf buffer error.
Variants
InvalidPageCount
Fields
page_count: usize
the page count
the page count value passed to PerfEventArray::open
is invalid.
OpenError
Fields
io_error: Error
the source of this error
perf_event_open
failed.
MMapError
Fields
io_error: Error
the source of this error
mmap
-ping the buffer failed.
PerfEventEnableError
Fields
io_error: Error
the source of this error
The PERF_EVENT_IOC_ENABLE
ioctl failed
NoBuffers
read_events()
was called with no output buffers.
MoreSpaceNeeded
Fields
size: usize
read_events() now calls BytesMut::reserve() internally, so this error is never returned
expected size
read_events() now calls BytesMut::reserve() internally, so this error is never returned
read_events()
was called with a buffer that is not large enough to
contain the next event in the perf buffer.
IOError(Error)
An IO error occurred.
Trait Implementations
sourceimpl Debug for PerfBufferError
impl Debug for PerfBufferError
sourceimpl Display for PerfBufferError
impl Display for PerfBufferError
sourceimpl Error for PerfBufferError
impl Error for PerfBufferError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for PerfBufferError
impl Send for PerfBufferError
impl Sync for PerfBufferError
impl Unpin for PerfBufferError
impl !UnwindSafe for PerfBufferError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more