Struct protosocket_prost::ClientRegistryDriver
source · pub struct ClientRegistryDriver { /* private fields */ }Expand description
You may choose to spawn this in your mixed runtime, but you should strongly consider putting it on a dedicated thread. It uses epoll and though it tries to stay live, it can hitch for brief moments.
Implementations§
source§impl ClientRegistryDriver
impl ClientRegistryDriver
sourcepub fn handle_io_on_dedicated_thread(self) -> Result<JoinHandle<()>>
pub fn handle_io_on_dedicated_thread(self) -> Result<JoinHandle<()>>
launch this client registry’s IO on a background thread protoskt-{i}.
Consider this as your default choice for a client registry.
Trait Implementations§
source§impl Future for ClientRegistryDriver
impl Future for ClientRegistryDriver
Auto Trait Implementations§
impl Freeze for ClientRegistryDriver
impl !RefUnwindSafe for ClientRegistryDriver
impl Send for ClientRegistryDriver
impl Sync for ClientRegistryDriver
impl Unpin for ClientRegistryDriver
impl !UnwindSafe for ClientRegistryDriver
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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more