pub struct FakePush { /* private fields */ }Expand description
An in-memory cratefield_core::Push for module tests: records every
(token, notification) and answers according to its PushMode.
Implementations§
Trait Implementations§
Source§impl Push for FakePush
impl Push for FakePush
Source§fn send<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device_token: &'life1 str,
notification: &'life2 Notification,
) -> Pin<Box<dyn Future<Output = Result<PushOutcome, PushError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device_token: &'life1 str,
notification: &'life2 Notification,
) -> Pin<Box<dyn Future<Output = Result<PushOutcome, PushError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Sends
notification to device_token.Auto Trait Implementations§
impl Freeze for FakePush
impl RefUnwindSafe for FakePush
impl Send for FakePush
impl Sync for FakePush
impl Unpin for FakePush
impl UnsafeUnpin for FakePush
impl UnwindSafe for FakePush
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