pub struct WhatsAppBotClient<Stub = Channel<WhatsAppBotRequest, WhatsAppBotResponse>>(Stub);Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Tuple Fields§
§0: StubImplementations§
Source§impl WhatsAppBotClient
impl WhatsAppBotClient
Sourcepub fn new<T>(
config: Config,
transport: T,
) -> NewClient<Self, RequestDispatch<WhatsAppBotRequest, WhatsAppBotResponse, T>>where
T: Transport<ClientMessage<WhatsAppBotRequest>, Response<WhatsAppBotResponse>>,
pub fn new<T>(
config: Config,
transport: T,
) -> NewClient<Self, RequestDispatch<WhatsAppBotRequest, WhatsAppBotResponse, T>>where
T: Transport<ClientMessage<WhatsAppBotRequest>, Response<WhatsAppBotResponse>>,
Returns a new client stub that sends requests over the given transport.
Source§impl<Stub> WhatsAppBotClient<Stub>where
Stub: Stub<Req = WhatsAppBotRequest, Resp = WhatsAppBotResponse>,
impl<Stub> WhatsAppBotClient<Stub>where
Stub: Stub<Req = WhatsAppBotRequest, Resp = WhatsAppBotResponse>,
Trait Implementations§
Source§impl<Stub: Clone> Clone for WhatsAppBotClient<Stub>
impl<Stub: Clone> Clone for WhatsAppBotClient<Stub>
Source§fn clone(&self) -> WhatsAppBotClient<Stub>
fn clone(&self) -> WhatsAppBotClient<Stub>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Stub: Debug> Debug for WhatsAppBotClient<Stub>
impl<Stub: Debug> Debug for WhatsAppBotClient<Stub>
Source§impl<Stub> From<Stub> for WhatsAppBotClient<Stub>where
Stub: Stub<Req = WhatsAppBotRequest, Resp = WhatsAppBotResponse>,
impl<Stub> From<Stub> for WhatsAppBotClient<Stub>where
Stub: Stub<Req = WhatsAppBotRequest, Resp = WhatsAppBotResponse>,
Auto Trait Implementations§
impl<Stub> Freeze for WhatsAppBotClient<Stub>where
Stub: Freeze,
impl<Stub> RefUnwindSafe for WhatsAppBotClient<Stub>where
Stub: RefUnwindSafe,
impl<Stub> Send for WhatsAppBotClient<Stub>where
Stub: Send,
impl<Stub> Sync for WhatsAppBotClient<Stub>where
Stub: Sync,
impl<Stub> Unpin for WhatsAppBotClient<Stub>where
Stub: Unpin,
impl<Stub> UnwindSafe for WhatsAppBotClient<Stub>where
Stub: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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