Enum influxc::InfluxError [−][src]
Chaining Support
Project wide enumeration of errors that this library emits. If you have your own error type, you might want to chain this error into it like so:
use influxc::InfluxError; #[derive(Debug)] enum MyError { Influx(InfluxError) } impl From<InfluxError> for MyError { fn from(other: InfluxError) -> Self { Self::Influx(other) } } impl std::fmt::Display for MyError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { Self::Influx(ref other) => write!(f, "{}", other) } } } impl std::error::Error for MyError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { match self { Self::Influx(ref other) => Some(other) } } }
Variants
Error(String)
Internal error message
Annotated(String, Box<InfluxError>)
Annotated error message. Allows for context providing in case of an error.
Io(Error)
Chaining of IoError
ParseBool(ParseBoolError)
Chaining of ParseBoolError
Json(JsonError)
Chaining of JsonError
Reqwest(ReqwError)
Chaining of ReqwestError
Authentication API: Not authorized (log-in missing) error.
Authentication API: Account is currently disabled. Check
Authentication API: Unknown credentials. Invalid username/passwd in basic?. Invalid token?
Write API: Malformed write request. Something is not properly formatted for InfluxDB. Please report bug.
Write API: Not authorized to write to that bucket. Check permissions in InfluxDB GUI.
Write API: Not yet authenticated for write. Authenticate first.
Write API: Request is to big in size. Reduce the amount of measurements in submitted record.
Write API: Request limit reached. Try again later.
Write API: InfluxDB currently not ready. Try again later.
Write API: InfluxDB server side error. Investigate.
Trait Implementations
impl Debug for InfluxError
[src]
impl Display for InfluxError
[src]
impl Error for InfluxError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<&'_ str> for InfluxError
[src]
fn from(err: &str) -> InfluxError
[src]
impl From<Error> for InfluxError
[src]
fn from(err: Error) -> InfluxError
[src]
impl From<Error> for InfluxError
[src]
fn from(err: JsonError) -> InfluxError
[src]
impl From<Error> for InfluxError
[src]
fn from(err: ReqwError) -> InfluxError
[src]
impl From<ParseBoolError> for InfluxError
[src]
fn from(err: ParseBoolError) -> InfluxError
[src]
impl From<String> for InfluxError
[src]
fn from(err: String) -> InfluxError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for InfluxError
impl Send for InfluxError
impl Sync for InfluxError
impl Unpin for InfluxError
impl !UnwindSafe for InfluxError
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, 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>,