Skip to main content

MethodProvider

Trait MethodProvider 

Source
pub trait MethodProvider<'p, X: Xml>: DigestProvider<'p, X> {
    // Required method
    fn resolve_new<W: Work>(
        &self,
        algorithm: &str,
        work: &W,
    ) -> Result<Resolution<Self::Identity>, Self::Error>;
}
Expand description

New parameter-free XML digest methods through the SAME selected provider. This capability does not add a dispatcher or change existing-node resolution.

Required Methods§

Source

fn resolve_new<W: Work>( &self, algorithm: &str, work: &W, ) -> Result<Resolution<Self::Identity>, Self::Error>

Resolve exactly this URI under the current operation’s compiled policy. It is emitted unchanged as the new DigestMethod Algorithm attribute. Admit lexical scans, policy evaluation and any retained identity storage through work before execution. Reject noncanonical lexical input as Malformed; do not normalize into a different emitted value. Methods requiring parameters are Unsupported or Malformed, never silently assigned absent/default parameters. Original terminal errors stay errors.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§