pub struct ChatsPanel { /* private fields */ }Expand description
Chat rooms pushed by the host’s Chats service.
The user picks a room, reads its messages and posts; a posted message appears once the host
pushes it. Where the service’s capabilities allow, the header offers
to start a direct message or create a private or group room, choosing the recipients from
the service’s find_users, and to add or remove the members of a room
whose members the service pushes. Each action shows while it is pending and its failure, and
attaching another service clears them. Call poll each frame, even while the
panel is hidden, then show while it is open. Accounts and moderation are the
host’s.
Implementations§
Source§impl ChatsPanel
impl ChatsPanel
Sourcepub fn new() -> Self
pub fn new() -> Self
An unconnected panel. Attach a service with set_service.
Sourcepub fn set_service(&mut self, service: Arc<dyn Chats>)
pub fn set_service(&mut self, service: Arc<dyn Chats>)
Attach a host service, clearing the previous one’s rooms, members, recipients and pending actions.
Trait Implementations§
Source§impl Default for ChatsPanel
impl Default for ChatsPanel
Source§fn default() -> ChatsPanel
fn default() -> ChatsPanel
Auto Trait Implementations§
impl !RefUnwindSafe for ChatsPanel
impl !UnwindSafe for ChatsPanel
impl Freeze for ChatsPanel
impl Send for ChatsPanel
impl Sync for ChatsPanel
impl Unpin for ChatsPanel
impl UnsafeUnpin for ChatsPanel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more