pub struct NullCodecResolver;Expand description
Null resolver that resolves nothing — useful as a default when a
caller doesn’t have a real registry handy (e.g. unit tests, or
legacy callers of the tag-free open() APIs).
Trait Implementations§
Source§impl Clone for NullCodecResolver
impl Clone for NullCodecResolver
Source§impl CodecResolver for NullCodecResolver
impl CodecResolver for NullCodecResolver
Source§fn resolve_tag(&self, _ctx: &ProbeContext<'_>) -> Option<CodecId>
fn resolve_tag(&self, _ctx: &ProbeContext<'_>) -> Option<CodecId>
Resolve the tag in
ctx.tag to a codec id. Implementations walk
every registration whose tag set contains the tag, call each
probe (treating None as “always 1.0”), and return the id with
the highest resulting confidence. Ties are broken by
registration order.impl Copy for NullCodecResolver
Auto Trait Implementations§
impl Freeze for NullCodecResolver
impl RefUnwindSafe for NullCodecResolver
impl Send for NullCodecResolver
impl Sync for NullCodecResolver
impl Unpin for NullCodecResolver
impl UnsafeUnpin for NullCodecResolver
impl UnwindSafe for NullCodecResolver
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