pub enum ResponseType {
Success(i64),
RawError(i32),
Error(Error),
}
Expand description
Represents the type of response to a seccomp notification.
This enum is used to specify the outcome of handling a seccomp notification.
It can indicate success with a return value, a raw error code, or an io::Error
for convenience.
Variants§
Success(i64)
Indicates success with a specific return value.
RawError(i32)
Indicates an error that will be written to the targets errno.
Error(Error)
Indicates an error with an io::Error
. It will be converted to an integer and written to the targets errno.
Auto Trait Implementations§
impl Freeze for ResponseType
impl !RefUnwindSafe for ResponseType
impl Send for ResponseType
impl Sync for ResponseType
impl Unpin for ResponseType
impl !UnwindSafe for ResponseType
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