Struct Client
pub struct Client {
handle: Handle,
_marker: PhantomData<Cell<()>>,
}👎Deprecated:
use ql-wms
Fields§
§handle: Handle👎Deprecated:
§use ql-wms
_marker: PhantomData<Cell<()>>👎Deprecated:
use ql-wms
Implementations§
§impl Client
impl Client
pub fn new() -> Result<Self>
👎Deprecated:
use ql-wms
unsafe fn deinit_unchecked(&self) -> Result<()>
👎Deprecated:
use ql-wms
§impl Client
impl Client
pub fn set_global_handler(
&self,
handler: impl Fn(MessageRef<'_>) + Send + 'static,
) -> Result<()>
👎Deprecated: use ql-wms
pub fn set_global_handler( &self, handler: impl Fn(MessageRef<'_>) + Send + 'static, ) -> Result<()>
use ql-wms
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 !RefUnwindSafe for Client
impl !Sync for Client
impl Freeze for Client
impl Send for Client
impl Unpin for Client
impl UnsafeUnpin 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