pub struct CmsBinding { /* private fields */ }Expand description
Named, versioned CmsBackend binding with conservative resource and capability quotes.
Swap CMS implementations (such as MoxCms, pure-Rust Lcms, C lcms2, or a custom
provider) across zenpixels-convert, zencodec-render, zencodecs, zenpipe, and
hosts by substituting this binding alone.
Implementations§
Source§impl CmsBinding
impl CmsBinding
Sourcepub fn new(
id: impl Into<Box<str>>,
revision: impl Into<Box<str>>,
backend: Arc<dyn CmsBackend>,
quote: CmsQuote,
) -> Self
pub fn new( id: impl Into<Box<str>>, revision: impl Into<Box<str>>, backend: Arc<dyn CmsBackend>, quote: CmsQuote, ) -> Self
Construct a named, versioned CMS binding.
Prefer stable reverse-DNS provider identifiers (e.g. "org.imazen.cms.moxcms",
"org.imazen.cms.lcms") and a revision string that changes whenever transform output
or qualification changes so downstream route caches invalidate deterministically.
Sourcepub fn revision(&self) -> &str
pub fn revision(&self) -> &str
Provider revision / version string for deterministic cache keys and diagnostics.
Sourcepub fn backend(&self) -> &Arc<dyn CmsBackend> ⓘ
pub fn backend(&self) -> &Arc<dyn CmsBackend> ⓘ
Underlying CmsBackend implementation.
Trait Implementations§
Source§impl Clone for CmsBinding
impl Clone for CmsBinding
Source§fn clone(&self) -> CmsBinding
fn clone(&self) -> CmsBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for CmsBinding
impl !UnwindSafe for CmsBinding
impl Freeze for CmsBinding
impl Send for CmsBinding
impl Sync for CmsBinding
impl Unpin for CmsBinding
impl UnsafeUnpin for CmsBinding
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