pub struct InMemoryPusher { /* private fields */ }Expand description
In-memory pusher for development. 开发用内存推送器。
Implementations§
Source§impl InMemoryPusher
impl InMemoryPusher
Sourcepub async fn get_messages(&self, login_id: &str) -> Vec<PushMessage>
pub async fn get_messages(&self, login_id: &str) -> Vec<PushMessage>
get_messages — get messages | get_messages
Sourcepub async fn clear_messages(&self, login_id: &str)
pub async fn clear_messages(&self, login_id: &str)
Clear buffered messages for a login id (dev / tests). 清空某登录账号的缓冲消息(开发 / 测试)。
Trait Implementations§
Source§impl Debug for InMemoryPusher
impl Debug for InMemoryPusher
Source§impl Default for InMemoryPusher
impl Default for InMemoryPusher
Source§impl MessagePusher for InMemoryPusher
impl MessagePusher for InMemoryPusher
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryPusher
impl !UnwindSafe for InMemoryPusher
impl Freeze for InMemoryPusher
impl Send for InMemoryPusher
impl Sync for InMemoryPusher
impl Unpin for InMemoryPusher
impl UnsafeUnpin for InMemoryPusher
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