Enum nagiosplugin::RunnerResult
source · pub enum RunnerResult<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§
source§impl<E: Debug> RunnerResult<E>
impl<E: Debug> RunnerResult<E>
pub fn print_and_exit(self) -> !
Trait Implementations§
Auto Trait Implementations§
impl<E> RefUnwindSafe for RunnerResult<E>where
E: RefUnwindSafe,
impl<E> Send for RunnerResult<E>where
E: Send,
impl<E> Sync for RunnerResult<E>where
E: Sync,
impl<E> Unpin for RunnerResult<E>where
E: Unpin,
impl<E> UnwindSafe for RunnerResult<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