Skip to main content

OutboundSigner

Trait OutboundSigner 

Source
pub trait OutboundSigner: Send + Sync {
    // Required method
    fn sign(
        &self,
        request: SecurityRequestView<'_>,
    ) -> Result<Signature, SecurityProviderError>;
}
Expand description

Contract implemented by transport-specific outbound signers in rocketmq-auth.

Required Methods§

Source

fn sign( &self, request: SecurityRequestView<'_>, ) -> Result<Signature, SecurityProviderError>

Signs an outbound security request.

§Errors

Returns a redacted SecurityProviderError when the signing provider cannot produce a signature safely.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§