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§fn clone(&self) -> NullCodecResolver
fn clone(&self) -> NullCodecResolver
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 moreSource§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.Source§impl Default for NullCodecResolver
impl Default for NullCodecResolver
Source§fn default() -> NullCodecResolver
fn default() -> NullCodecResolver
Returns the “default value” for a type. Read more
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