Skip to main content

PrincipalSource

Trait PrincipalSource 

Source
pub trait PrincipalSource: Send + Sync {
    // Required method
    fn reference(&self, principal_handle: &[u8]) -> Option<Vec<u8>>;
}
Expand description

Supplies the opaque principal reference of one attempt.

Required Methods§

Source

fn reference(&self, principal_handle: &[u8]) -> Option<Vec<u8>>

The reference for the attempt whose CallContext carries principal_handle, or None when there is none; the attempt is then refused before any request byte is sent.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§