pub trait AuthResource: Clone {
// Required methods
fn authenticate(
&self,
pong: &Pong,
) -> impl Future<Output = Result<SignedAgentKey, SetupError>> + Sync;
fn get_control_addresses(
&self,
) -> impl Future<Output = Result<Vec<SocketAddr>, SetupError>> + Sync;
}Required Methods§
fn authenticate( &self, pong: &Pong, ) -> impl Future<Output = Result<SignedAgentKey, SetupError>> + Sync
fn get_control_addresses( &self, ) -> impl Future<Output = Result<Vec<SocketAddr>, SetupError>> + Sync
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.