Struct protosocket_prost::ClientRegistry
source · pub struct ClientRegistry { /* private fields */ }Implementations§
source§impl ClientRegistry
impl ClientRegistry
pub fn new() -> Result<(Self, ClientRegistryDriver)>
pub async fn register_client<Request, Response>( &self, address: impl Into<String>, ) -> Result<(Sender<Request>, Receiver<Response>, ConnectionDriver<ProstClientConnectionBindings<Request, Response>>)>
Auto Trait Implementations§
impl Freeze for ClientRegistry
impl !RefUnwindSafe for ClientRegistry
impl Send for ClientRegistry
impl Sync for ClientRegistry
impl Unpin for ClientRegistry
impl !UnwindSafe for ClientRegistry
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