Skip to main content

SaltProviderServerHandler

Trait SaltProviderServerHandler 

Source
pub trait SaltProviderServerHandler<___T: Transport = Channel> {
    // Required method
    fn get_salt(
        &mut self,
        responder: Responder<GetSalt, ___T>,
    ) -> impl Future<Output = ()> + Send;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> + Send { ... }
}
Expand description

A server handler for the SaltProvider protocol.

See SaltProvider for more details.

Required Methods§

Source

fn get_salt( &mut self, responder: Responder<GetSalt, ___T>, ) -> impl Future<Output = ()> + Send

Returns the 32-byte per-boot random salt.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§