pub struct FcmClient { /* private fields */ }
Implementations§
Source§impl FcmClient
impl FcmClient
pub fn new(api_key: String) -> Self
pub async fn send_message( &self, message: &Message, ) -> Result<FcmResponse, FcmError>
pub async fn make_request( &self, message: &Message, ) -> Result<FcmResponse, FcmError>
Trait Implementations§
Source§impl Client for FcmClient
impl Client for FcmClient
async fn send_by_token( &self, token: impl Into<String>, message: Message, ) -> Result<(), ClientError>
async fn send_by_topic( &self, topic: impl Into<String>, message: Message, ) -> Result<(), ClientError>
Auto Trait Implementations§
impl Freeze for FcmClient
impl !RefUnwindSafe for FcmClient
impl Send for FcmClient
impl Sync for FcmClient
impl Unpin for FcmClient
impl !UnwindSafe for FcmClient
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