antithesis_sdk 0.2.8

Rust SDK for the Antithesis autonomous software testing platform.
Documentation
use crate::internal::LibHandler;
use std::io::Error;

pub struct NoOpHandler {}

impl NoOpHandler {
    #[allow(dead_code)]
    pub fn new() -> Self {
        NoOpHandler {}
    }
}

impl LibHandler for NoOpHandler {
    fn output(&self, _value: &str) -> Result<(), Error> {
        Ok(())
    }

    fn random(&self) -> u64 {
        rand::random::<u64>()
    }
}