[][src]Enum tenable::Error

pub enum Error<RE: Debug> {
    InvalidAuth(InvalidHeaderValue),
    Http(Error),
    InsufficientPermission,
    RateLimitReached,
    MaximumWaitTimeReached,
    UnexpectedStatusCode(StatusCode),
    Request(RE),
    Deserialization(Error),
}

Possible error types occuring in this library

Variants

InvalidAuth(InvalidHeaderValue)

AccessKey or SecretKey contains invalid characters.

Http(Error)

Unable to build Http Request.

InsufficientPermission

User is not allowed to perform this operation.

RateLimitReached

Rate Limit reached. Try again later.

MaximumWaitTimeReached

The Backoff function reached a number to high to represent while waiting

UnexpectedStatusCode(StatusCode)

API returned unexpected status code.

Request(RE)

Error in inner request client.

Deserialization(Error)

Unable to transform response to concret type.

Trait Implementations

impl<RE: Debug> Debug for Error<RE>[src]

impl<RE: Debug> Display for Error<RE>[src]

impl<RE: 'static + Debug + Error> Error for Error<RE>[src]

impl<RE: Debug> From<Error> for Error<RE>[src]

impl<RE: Debug> From<Error> for Error<RE>[src]

impl<RE: Debug> From<InvalidHeaderValue> for Error<RE>[src]

Auto Trait Implementations

impl<RE> !RefUnwindSafe for Error<RE>

impl<RE> Send for Error<RE> where
    RE: Send

impl<RE> Sync for Error<RE> where
    RE: Sync

impl<RE> Unpin for Error<RE> where
    RE: Unpin

impl<RE> !UnwindSafe for Error<RE>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.