[][src]Struct schema_registry_converter::schema_registry::SRCError

pub struct SRCError { /* fields omitted */ }

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.

Methods

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<&str>, retriable: bool) -> SRCError[src]

pub fn into_cache(self) -> SRCError[src]

Should be called before putting the error in the cache

Trait Implementations

impl PartialEq<SRCError> for SRCError[src]

impl Clone for SRCError[src]

Implements clone so when an error is returned from the cache, a copy can be returned

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for SRCError[src]

Gives the information from the error in a readable format.

impl Debug for SRCError[src]

Auto Trait Implementations

impl Send for SRCError

impl Sync for SRCError

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self