pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub async fn request<T: Serialize + Debug + DeserializeOwned + Send + 'static, Y: Serialize + Debug + DeserializeOwned + Send + 'static>( &self, message: T, ) -> Result<Y>
pub fn new<T, DummyType>( sender: UnboundedSender<Message>, receiver: UnboundedReceiver<Message>, service: T, close_receiver: Option<Receiver<()>>, ) -> <T as Service<DummyType>>::Client
pub async fn get_close_receiver(&self) -> Option<Receiver<()>>
pub async fn wait(&self)
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