Add IOError variants to PerfMapError and PerfBufferError

pull/1/head
Alessandro Decina 4 years ago
parent b9be2f1a9b
commit 5d6fe8bdf4

@ -54,6 +54,9 @@ pub enum PerfBufferError {
#[error("the buffer needs to be of at least {size} bytes")]
MoreSpaceNeeded { size: usize },
#[error(transparent)]
IOError(#[from] io::Error),
}
#[derive(Debug, PartialEq)]
@ -266,6 +269,9 @@ pub enum PerfMapError {
#[error("perf buffer error: {0}")]
PerfBufferError(#[from] PerfBufferError),
#[error(transparent)]
IOError(#[from] io::Error),
#[error("bpf_map_update_elem failed: {io_error}")]
UpdateElementError {
#[source]

Loading…
Cancel
Save