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