pub struct StaticCodecType<T: StaticCodec> { /* private fields */ }
Expand description
Type object for statically typed compression codecs.
Implementations§
Source§impl<T: StaticCodec> StaticCodecType<T>
impl<T: StaticCodec> StaticCodecType<T>
Trait Implementations§
Source§impl<T: StaticCodec> DynCodecType for StaticCodecType<T>
impl<T: StaticCodec> DynCodecType for StaticCodecType<T>
Source§fn codec_config_schema(&self) -> Schema
fn codec_config_schema(&self) -> Schema
JSON schema for the codec’s configuration.
Source§fn codec_from_config<'de, D: Deserializer<'de>>(
&self,
config: D,
) -> Result<Self::Codec, D::Error>
fn codec_from_config<'de, D: Deserializer<'de>>( &self, config: D, ) -> Result<Self::Codec, D::Error>
Instantiate a codec of this type from a serialized
config
uration. Read moreAuto Trait Implementations§
impl<T> Freeze for StaticCodecType<T>
impl<T> RefUnwindSafe for StaticCodecType<T>where
T: RefUnwindSafe,
impl<T> Send for StaticCodecType<T>
impl<T> Sync for StaticCodecType<T>
impl<T> Unpin for StaticCodecType<T>where
T: Unpin,
impl<T> UnwindSafe for StaticCodecType<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more