Skip to main content

SessionExt

Trait SessionExt 

Source
pub trait SessionExt: IsA<Session> + 'static {
    // Provided methods
    fn comment(&self) -> Option<GString> { ... }
    fn key(&self) -> Option<GString> { ... }
    fn name(&self) -> Option<GString> { ... }
    fn session_type(&self) -> Option<GString> { ... }
    fn connect_comment_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_key_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Session methods.

§Implementors

Session

Provided Methods§

Source

fn comment(&self) -> Option<GString>

Get the comment for a session

§Returns

The session comment

Source

fn key(&self) -> Option<GString>

Get the key for a session

§Returns

The session key

Source

fn name(&self) -> Option<GString>

Get the name for a session

§Returns

The session name

Source

fn session_type(&self) -> Option<GString>

Get the type a session

§Returns

The session type, e.g. x or mir

Source

fn connect_comment_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_key_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<O: IsA<Session>> SessionExt for O