[][src]Struct systemd_rs::login::session::Session

pub struct Session {
    pub identifier: String,
    pub uid: u32,
    // some fields omitted
}

Fields

identifier: Stringuid: u32

Methods

impl Session[src]

pub fn from_process_id(pid: i32) -> Result<Option<Self>>[src]

pub fn get_state(&self) -> Result<State>[src]

pub fn get_type(&self) -> Result<Type>[src]

pub fn get_class(&self) -> Result<Class>[src]

pub fn get_display(&self) -> Result<String>[src]

Trait Implementations

impl Debug for Session[src]

impl Display for Session[src]

impl PartialEq<Session> for Session[src]

Auto Trait Implementations

impl RefUnwindSafe for Session

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl UnwindSafe for Session

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.