Struct schema_registry_converter::async_impl::proto_raw::ProtoRawDecoder[][src]

pub struct ProtoRawDecoder<'a> { /* fields omitted */ }

Implementations

impl<'a> ProtoRawDecoder<'a>[src]

pub fn new(sr_settings: SrSettings) -> ProtoRawDecoder<'a>[src]

Creates a new decoder which will use the supplied url to fetch the schema's since the schema needed is encoded in the binary, independent of the SubjectNameStrategy we don't need any additional data. It's possible for recoverable errors to stay in the cache, when a result comes back as an error you can use remove_errors_from_cache to clean the cache, keeping the correctly fetched schema's

pub fn remove_errors_from_cache(&mut self)[src]

Remove al the errors from the cache, you might need to/want to run this when a recoverable error is met. Errors are also cashed to prevent trying to get schema's that either don't exist or can't be parsed.

pub async fn decode(
    &mut self,
    bytes: Option<&[u8]>
) -> Result<Option<RawDecodeResult>, SRCError>
[src]

Reads the bytes to get the name, and gives back the data bytes.

Trait Implementations

impl<'a> Debug for ProtoRawDecoder<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ProtoRawDecoder<'a>[src]

impl<'a> Send for ProtoRawDecoder<'a>[src]

impl<'a> Sync for ProtoRawDecoder<'a>[src]

impl<'a> Unpin for ProtoRawDecoder<'a>[src]

impl<'a> !UnwindSafe for ProtoRawDecoder<'a>[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> GetTypeId for T where
    T: Any
[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,