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§
fn user(&self) -> &str
fn group(&self) -> &str
fn is_process_user(&self) -> bool
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§
impl SessionUser for PosixSessionUser
Available on Unix only.