Skip to main content

AuthHeapStrategy

Trait AuthHeapStrategy 

Source
pub trait AuthHeapStrategy {
    // Required methods
    fn with_auth_state<R>(
        &self,
        f: impl FnOnce(&Option<AuthenticationHeapState>) -> R,
    ) -> R;
    fn with_auth_state_mut<R>(
        &self,
        f: impl FnOnce(&mut Option<AuthenticationHeapState>) -> R,
    ) -> R;
}

Required Methods§

Source

fn with_auth_state<R>( &self, f: impl FnOnce(&Option<AuthenticationHeapState>) -> R, ) -> R

Source

fn with_auth_state_mut<R>( &self, f: impl FnOnce(&mut Option<AuthenticationHeapState>) -> R, ) -> R

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§