#[non_exhaustive]pub enum Error {
Show 25 variants
InvalidTimeOrder,
EmptyUpdate,
EmptyDatasets,
EmptyType,
MissingToken,
MissingOrgId,
InvalidToken,
InvalidOrgId,
HttpClientSetup(Error),
Deserialize(Error),
Http(Error),
Axiom(Axiom),
InvalidQueryId,
InvalidParams(Error),
Serialize(Error),
Encoding(Error),
DurationOutOfRange,
JoinError(JoinError),
RateLimitExceeded {
scope: String,
limits: Limits,
},
QueryLimitExceeded(Limits),
IngestLimitExceeded(Limits),
InvalidUrl(ParseError),
IngestStreamError(Box<dyn Error + Send + Sync>),
InvalidContentType(String),
InvalidContentEncoding(String),
}
Expand description
The error type for the Axiom client.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidTimeOrder
Invalid time
EmptyUpdate
Empty update.
EmptyDatasets
Empty datasets.
EmptyType
Empty type.
MissingToken
Missing token.
MissingOrgId
Missing Org ID for Personal Access Token.
InvalidToken
Invalid token.
InvalidOrgId
Invalid Org ID.
HttpClientSetup(Error)
Failed to setup HTTP client.
Deserialize(Error)
Failed to deserialize response.
Http(Error)
HTTP error.
Axiom(Axiom)
Axion API error.
InvalidQueryId
Query ID contains invisible characters (this is a server error).
InvalidParams(Error)
Invalid Query Parameters.
Serialize(Error)
Invalid JSON.
Encoding(Error)
Failed to encode payload.
DurationOutOfRange
Duration is out of range (can’t be larger than i64::MAX
milliseconds).
JoinError(JoinError)
Failed to join thread.
RateLimitExceeded
Rate limit exceeded.
QueryLimitExceeded(Limits)
Query limit exceeded.
IngestLimitExceeded(Limits)
Ingest limit exceeded.
InvalidUrl(ParseError)
Invalid URL.
IngestStreamError(Box<dyn Error + Send + Sync>)
Error in ingest stream.
InvalidContentType(String)
Invalid content type.
InvalidContentEncoding(String)
Invalid content encoding.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error<Error>> for Error
This is the manual implementation. We don’t really care if the error is
permanent or transient at this stage so we just return Error::Http
.
impl From<Error<Error>> for Error
This is the manual implementation. We don’t really care if the error is
permanent or transient at this stage so we just return Error::Http
.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.