pub struct SystemMessagesProvider<E>{ /* private fields */ }Available on crate feature
system-messages only.Expand description
Database storage provider for system messages.
Implementations§
Trait Implementations§
Source§impl<E> SystemMessageStorage for SystemMessagesProvider<E>
impl<E> SystemMessageStorage for SystemMessagesProvider<E>
Source§fn list_system_messages<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SystemMessageMap, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_system_messages<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SystemMessageMap, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List system messages for an account.
Source§fn insert_system_message<'life0, 'async_trait>(
&'life0 mut self,
key: Urn,
message: SysMessage,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_system_message<'life0, 'async_trait>(
&'life0 mut self,
key: Urn,
message: SysMessage,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add a system message to an account.
Source§fn remove_system_message<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 Urn,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_system_message<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 Urn,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove a system message from an account.
Source§fn mark_system_message<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 Urn,
is_read: bool,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn mark_system_message<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 Urn,
is_read: bool,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Mark a system message as read or unread.
Auto Trait Implementations§
impl<E> Freeze for SystemMessagesProvider<E>
impl<E> RefUnwindSafe for SystemMessagesProvider<E>where
E: RefUnwindSafe,
impl<E> Send for SystemMessagesProvider<E>
impl<E> Sync for SystemMessagesProvider<E>
impl<E> Unpin for SystemMessagesProvider<E>where
E: Unpin,
impl<E> UnwindSafe for SystemMessagesProvider<E>where
E: UnwindSafe,
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