Struct schema_registry_converter::error::SRCError [−][src]
Error struct which makes it easy to know if the resulting error is also preserved in the cache or not. And whether trying it again might not cause an error.
Fields
error: String
cause: Option<String>
retriable: bool
cached: bool
Implementations
impl SRCError
[src]
Specific error from which can be determined whether retrying might not lead to an error and whether the error is cashed, it's turned into the cashed variant when it's put into the cache.
pub fn new(error: &str, cause: Option<String>, retriable: bool) -> SRCError
[src]
pub fn retryable_with_cause<T: Display>(cause: T, error: &str) -> SRCError
[src]
pub fn non_retryable_with_cause<T: Display>(cause: T, error: &str) -> SRCError
[src]
pub fn non_retryable_without_cause(error: &str) -> SRCError
[src]
pub fn into_cache(self) -> SRCError
[src]
Should be called before putting the error in the cache
Trait Implementations
impl Clone for SRCError
[src]
Implements clone so when an error is returned from the cache, a copy can be returned
impl Debug for SRCError
[src]
impl Display for SRCError
[src]
Gives the information from the error in a readable format.
impl Fail for SRCError
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
pub fn compat(self) -> Compat<Self>
[src]
impl PartialEq<SRCError> for SRCError
[src]
impl StructuralPartialEq for SRCError
[src]
Auto Trait Implementations
impl RefUnwindSafe for SRCError
[src]
impl Send for SRCError
[src]
impl Sync for SRCError
[src]
impl Unpin for SRCError
[src]
impl UnwindSafe for SRCError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
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> GetTypeId for T where
T: Any,
[src]
T: Any,
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> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,