Struct notifications2::NotificationStore
source · pub struct NotificationStore { /* private fields */ }
Implementations§
source§impl NotificationStore
impl NotificationStore
pub fn global(cx: &AppContext) -> Model<Self>
pub fn new( client: Arc<Client>, user_store: Model<UserStore>, cx: &mut ModelContext<'_, Self> ) -> Self
pub fn notification_count(&self) -> usize
pub fn unread_notification_count(&self) -> usize
pub fn channel_message_for_id(&self, id: u64) -> Option<&ChannelMessage>
pub fn notification_at(&self, ix: usize) -> Option<&NotificationEntry>
pub fn notification_for_id(&self, id: u64) -> Option<&NotificationEntry>
pub fn load_more_notifications( &self, clear_old: bool, cx: &mut ModelContext<'_, Self> ) -> Option<Task<Result<()>>>
pub fn respond_to_notification( &mut self, notification: Notification, response: bool, cx: &mut ModelContext<'_, Self> )
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NotificationStore
impl Send for NotificationStore
impl Sync for NotificationStore
impl Unpin for NotificationStore
impl !UnwindSafe for NotificationStore
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