Struct Client
pub struct Client {
handle: Handle,
_marker: PhantomData<Cell<()>>,
}Fields§
§handle: Handle§_marker: PhantomData<Cell<()>>Implementations§
§impl Client
impl Client
pub fn set_global_handler(
&self,
handler: impl Fn(MessageRef<'_>) + Send + 'static,
) -> Result<()>
pub fn set_global_handler( &self, handler: impl Fn(MessageRef<'_>) + Send + 'static, ) -> Result<()>
Sets the global handler for incoming SMS messages.
There can be only one global handler at a time.
Even though the handler is global, the client must be initialized to set it. That’s why this method is a method of the client.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl !Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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