ih 0.1.15

interface proto for hpc
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::fmt;

use pb_jelly::Message;

use crate::{CodeBody, State};

impl fmt::Display for State {
  fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
    write!(f, "State::{:?}", self)
  }
}

impl std::error::Error for State {}

pub fn captcha<T>() -> anyhow::Result<T> {
  Err(State::CAPTCHA.into())
}