Enum nagiosplugin::RunResult
source · pub enum RunResult<E> {
Ok(Resource),
Err(ServiceState, E),
}
Expand description
The result of a runner execution.
Variants§
Ok(Resource)
The run was successful and it contains the returned Resource.
Err(ServiceState, E)
The run was not successful and it contains the ServiceState and the error.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for RunResult<E>where
E: Freeze,
impl<E> RefUnwindSafe for RunResult<E>where
E: RefUnwindSafe,
impl<E> Send for RunResult<E>where
E: Send,
impl<E> Sync for RunResult<E>where
E: Sync,
impl<E> Unpin for RunResult<E>where
E: Unpin,
impl<E> UnwindSafe for RunResult<E>where
E: UnwindSafe,
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