Skip to main content

OptionSession

Trait OptionSession 

Source
pub trait OptionSession {
    // Required methods
    fn ensure_alive(self) -> Self;
    fn ensure_logged_in(self) -> Self;
    fn ensure_teacher(self) -> Self;
    fn ensure_admin(self) -> Self;
}

Required Methods§

Source

fn ensure_alive(self) -> Self

Source

fn ensure_logged_in(self) -> Self

Source

fn ensure_teacher(self) -> Self

Source

fn ensure_admin(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl OptionSession for Option<SessionUser>

Source§

fn ensure_alive(self) -> Self

Source§

fn ensure_logged_in(self) -> Self

Source§

fn ensure_teacher(self) -> Self

Source§

fn ensure_admin(self) -> Self

Implementors§