pub struct CodecImplementation {
pub caps: CodecCapabilities,
pub make_decoder: Option<DecoderFactory>,
pub make_encoder: Option<EncoderFactory>,
}Expand description
One registered implementation: capability description + factories. Either / both factories may be present depending on whether the impl can decode, encode, or both.
Fields§
§caps: CodecCapabilities§make_decoder: Option<DecoderFactory>§make_encoder: Option<EncoderFactory>Trait Implementations§
Source§impl Clone for CodecImplementation
impl Clone for CodecImplementation
Source§fn clone(&self) -> CodecImplementation
fn clone(&self) -> CodecImplementation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodecImplementation
impl RefUnwindSafe for CodecImplementation
impl Send for CodecImplementation
impl Sync for CodecImplementation
impl Unpin for CodecImplementation
impl UnsafeUnpin for CodecImplementation
impl UnwindSafe for CodecImplementation
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