Skip to main content

ServiceAuthMethod

Trait ServiceAuthMethod 

Source
pub trait ServiceAuthMethod:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn name(&self) -> &'static str;
    fn sign(&self, headers: &mut dyn MetaMapMut, now: SystemTime) -> Result<()>;
    fn verify(
        &self,
        headers: &dyn MetaMap,
        now: SystemTime,
    ) -> Result<(), VerifyError>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn sign(&self, headers: &mut dyn MetaMapMut, now: SystemTime) -> Result<()>

Source

fn verify( &self, headers: &dyn MetaMap, now: SystemTime, ) -> Result<(), VerifyError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§