[−][src]Enum hc_vault::Error
The Error
Variants
ParseError(ParseError)
ParseError is returned when there was an error parsing a url
ReqwestError(Error)
ReqwestError is returned when the request made to vault itself fails
IOError(Error)
IOError is returned by operations that have to do some sort of IO, like the helper function for the kubernetes backend, which loads the JWT token from a local file
InvalidRequest is returned when the made to vault was missing data or was invalid/ malformed data and therefore was rejected by vault before doing anything
IsSealed is returned when the given vault instance is not available because it is currently sealed and therefore does not accept or handle any requests other than to unseal it
NotFound is returned when the given vault endpoint/path was not found on the actual vault instance that you are connected to
Unauthorized is returned when your current Session has either expired and has not been renewed or when the credentials for login are not valid and therefore rejected or when you try to access something that you dont have the permissions to do so
SessionExpired is returned when the session you tried to use is expired and was configured to not automatically obtain a new session, when it notices that the current one is expired
Other simply represents all other errors that could not be grouped into on the other categories listed above
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for RenewError
[src]
pub fn from(cause: Error) -> RenewError
[src]
impl From<ParseError> for Error
[src]
pub fn from(cause: ParseError) -> Error
[src]
impl From<u16> for Error
[src]
This is only meant for status codes and assumes that the given u16 is a status-code from an http-request
Auto Trait Implementations
impl !RefUnwindSafe for Error
[src]
impl Send for Error
[src]
impl Sync for Error
[src]
impl Unpin for Error
[src]
impl !UnwindSafe for Error
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,