Skip to main content

AreaMembers

Trait AreaMembers 

Source
pub trait AreaMembers:
    Send
    + Sync
    + 'static {
    // Provided methods
    fn grants<'a>(
        &'a self,
        read: &'a Read,
        area: &'static str,
        principal: Uuid,
    ) -> BoxFuture<'a, Result<Vec<String>>> { ... }
    fn bearer<'a>(
        &'a self,
        db: &'a Db,
        area: &'static str,
        digest: &'a str,
    ) -> BoxFuture<'a, Result<Option<Bearer>>> { ... }
    fn sign_in_locked<'a>(
        &'a self,
        db: &'a Db,
        account: Uuid,
        until: Timestamp,
    ) -> BoxFuture<'a, Result<()>> { ... }
    fn session_record<'a>(
        &'a self,
        db: &'a Db,
        session: Uuid,
        seen: Option<Timestamp>,
    ) -> BoxFuture<'a, Result<SessionRecord>> { ... }
    fn session_topic(&self) -> Option<Topic> { ... }
}

Provided Methods§

Source

fn grants<'a>( &'a self, read: &'a Read, area: &'static str, principal: Uuid, ) -> BoxFuture<'a, Result<Vec<String>>>

Source

fn bearer<'a>( &'a self, db: &'a Db, area: &'static str, digest: &'a str, ) -> BoxFuture<'a, Result<Option<Bearer>>>

Source

fn sign_in_locked<'a>( &'a self, db: &'a Db, account: Uuid, until: Timestamp, ) -> BoxFuture<'a, Result<()>>

Source

fn session_record<'a>( &'a self, db: &'a Db, session: Uuid, seen: Option<Timestamp>, ) -> BoxFuture<'a, Result<SessionRecord>>

Asked for a session a request’s cookie names when the cache does not hold it, and whenever the cookie is refreshed (seen set, at most every five minutes). A session no longer live is signed out.

Source

fn session_topic(&self) -> Option<Topic>

The table of session_record’s records, written each time one ends, owned by its account. With it, records are cached until such a write, here or on another instance.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§