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§
sourcefn info(&self) -> &StoredSession
fn info(&self) -> &StoredSession
The Matrix session’s info.
sourcefn avatar_data(&self) -> AvatarData
fn avatar_data(&self) -> AvatarData
The avatar data to represent this session.
Provided Methods§
sourcefn user_id(&self) -> &OwnedUserId
fn user_id(&self) -> &OwnedUserId
The Matrix session’s user ID.
sourcefn homeserver(&self) -> &Url
fn homeserver(&self) -> &Url
The Matrix session’s homeserver.
sourcefn device_id(&self) -> &OwnedDeviceId
fn device_id(&self) -> &OwnedDeviceId
The Matrix session’s device ID.
sourcefn session_id(&self) -> &str
fn session_id(&self) -> &str
The local session’s ID.