oxinat_core 0.14.1

oxinat xapi-oxidized core library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use reqwest::Method;
use thiserror::Error;

/// Errors specific to the purpose of interactions
/// between an XNAT client and the host.
#[derive(Debug, Error)]
pub enum ClientError {
    #[error("could not successfully acquire auth token ({0})")]
    AuthFailure(u16),
    #[error("coult not successfully release auth token ({0})")]
    DeauthFailure(u16),
    #[error("error occured attempting a transaction with the host ({0})")]
    ServerFailure(u16),
    #[error("`{1}` does not support method `{0}`")]
    UnsupportedMethod(Method, String)
}