Trait fractal::session_list::session_info::SessionInfoExt

source ·
pub trait SessionInfoExt: 'static {
    // Required methods
    fn info(&self) -> &StoredSession;
    fn avatar_data(&self) -> AvatarData;

    // Provided methods
    fn user_id(&self) -> &OwnedUserId { ... }
    fn homeserver(&self) -> &Url { ... }
    fn device_id(&self) -> &OwnedDeviceId { ... }
    fn session_id(&self) -> &str { ... }
}
Expand description

Public trait containing implemented methods for everything that derives from SessionInfo.

To override the behavior of these methods, override the corresponding method of SessionInfoImpl.

Required Methods§

source

fn info(&self) -> &StoredSession

The Matrix session’s info.

source

fn avatar_data(&self) -> AvatarData

The avatar data to represent this session.

Provided Methods§

source

fn user_id(&self) -> &OwnedUserId

The Matrix session’s user ID.

source

fn homeserver(&self) -> &Url

The Matrix session’s homeserver.

source

fn device_id(&self) -> &OwnedDeviceId

The Matrix session’s device ID.

source

fn session_id(&self) -> &str

The local session’s ID.

Implementors§