pub struct Boxes { /* private fields */ }Expand description
A helper object for managing inbox/outbox.
Implementations§
Source§impl Boxes
impl Boxes
Sourcepub fn manager_mut(&mut self) -> &mut Manager
pub fn manager_mut(&mut self) -> &mut Manager
Returns the inbox/outbox manager as a mutable reference.
Sourcepub fn user_mut(&mut self) -> &mut User
pub fn user_mut(&mut self) -> &mut User
Returns the user object as a mutable reference, ceched on this helper object.
Sourcepub fn unread_count(&self) -> usize
pub fn unread_count(&self) -> usize
Returns the count of unread messages.
Sourcepub fn set_unread_count(&mut self, count: usize)
pub fn set_unread_count(&mut self, count: usize)
Set the count of unread messages.
Sourcepub fn increment_unread_count(&mut self)
pub fn increment_unread_count(&mut self)
Increments the count of unread messages.
Sourcepub fn decrement_unread_count(&mut self)
pub fn decrement_unread_count(&mut self)
Decrements the count of unread messages.
Sourcepub fn selected_identity_index(&self) -> Option<usize>
pub fn selected_identity_index(&self) -> Option<usize>
Returns the index of the selected identity.
Sourcepub fn set_selected_identity_index(&mut self, value: Option<usize>)
pub fn set_selected_identity_index(&mut self, value: Option<usize>)
Sets the index of the selected identity.
Sourcepub fn selected_contact_index(&self) -> Option<usize>
pub fn selected_contact_index(&self) -> Option<usize>
Returns the index of the selected contact.
Sourcepub fn set_selected_contact_index(&mut self, value: Option<usize>)
pub fn set_selected_contact_index(&mut self, value: Option<usize>)
Sets the index of the selected contact.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Boxes
impl !RefUnwindSafe for Boxes
impl Send for Boxes
impl Sync for Boxes
impl Unpin for Boxes
impl !UnwindSafe for Boxes
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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