pub struct TagClaim {
pub priority: u8,
pub probe: Option<CodecProbe>,
}Expand description
One codec’s claim on a container tag. Stored inside the registry;
callers don’t usually construct this directly, see
CodecRegistry::claim_tag.
Fields§
§priority: u8Higher = preferred when multiple codecs claim the same tag.
probe: Option<CodecProbe>Optional bitstream probe. Returns true to accept this claim, false to skip and try the next one in priority order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TagClaim
impl RefUnwindSafe for TagClaim
impl Send for TagClaim
impl Sync for TagClaim
impl Unpin for TagClaim
impl UnsafeUnpin for TagClaim
impl UnwindSafe for TagClaim
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