Skip to main content

SessionUser

Trait SessionUser 

Source
pub trait SessionUser:
    Send
    + Sync
    + Debug {
    // Required methods
    fn user(&self) -> &str;
    fn group(&self) -> &str;
    fn is_process_user(&self) -> bool;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Trait for session user identity.

Required Methods§

Source

fn user(&self) -> &str

Source

fn group(&self) -> &str

Source

fn is_process_user(&self) -> bool

Source

fn as_any(&self) -> &dyn Any

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl SessionUser for PosixSessionUser

Available on Unix only.