Skip to main content

Identity

Trait Identity 

Source
pub trait Identity:
    Send
    + Sync
    + 'static {
    // Required method
    fn identify(
        &self,
        bearer: Option<&str>,
    ) -> impl Future<Output = Option<Arc<Space>>> + Send;
}
Expand description

Resolves a request to the space it works on.

Required Methods§

Source

fn identify( &self, bearer: Option<&str>, ) -> impl Future<Output = Option<Arc<Space>>> + Send

The caller’s space, or None to refuse the call. bearer is the request’s bearer token, absent over stdio.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§