Struct aligne::ResponseManager
source · [−]Expand description
Encapsulates an asynchronous task that receives responses and requests asynchronously and matches them by id (u64
).
once both the response and the request are received, the request complete its future and receive the response.
Implementations
sourceimpl<R> ResponseManager<R> where
R: Send + Debug + 'static,
impl<R> ResponseManager<R> where
R: Send + Debug + 'static,
sourcepub fn spawn() -> ResponseManagerHandle<R>
pub fn spawn() -> ResponseManagerHandle<R>
spawn a new self::ResponseManager
and returns its task handle (crate::ResponseManagerHandle
).
Auto Trait Implementations
impl<R> !RefUnwindSafe for ResponseManager<R>
impl<R> Send for ResponseManager<R>
impl<R> Sync for ResponseManager<R> where
R: Sync,
impl<R> Unpin for ResponseManager<R> where
R: Unpin,
impl<R> !UnwindSafe for ResponseManager<R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more