pub struct Client { /* private fields */ }
Expand description
SMS Client.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(config: ClientConfig) -> ClientResult<Self>
pub fn new(config: ClientConfig) -> ClientResult<Self>
Create an SMS client with a connection config.
Sourcepub fn http(&self) -> ClientResult<&HttpClient>
pub fn http(&self) -> ClientResult<&HttpClient>
Borrow the optional inner HTTP client.
Sourcepub fn http_arc(&self) -> ClientResult<Arc<HttpClient>>
pub fn http_arc(&self) -> ClientResult<Arc<HttpClient>>
Get a cloned Arc to the optional HTTP client for use in async contexts.
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