pub struct HandleEventLoop { /* private fields */ }Implementations§
Source§impl HandleEventLoop
impl HandleEventLoop
pub fn new(ep: ClientEndpoint) -> Self
pub fn with_handler<A>(self, handler: impl Handler<A>) -> Self
pub fn register_handler<H, A>(&mut self, handler: H)where
H: Handler<A>,
pub async fn run(self)
pub fn spawn(self) -> JoinHandle<()>
Auto Trait Implementations§
impl !Freeze for HandleEventLoop
impl !RefUnwindSafe for HandleEventLoop
impl Send for HandleEventLoop
impl !Sync for HandleEventLoop
impl Unpin for HandleEventLoop
impl !UnwindSafe for HandleEventLoop
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