pub struct ResponseManagerHandle<R>{ /* private fields */ }
Expand description
Handle to the task of a crate::ResponseManager
, can spawn self::ResponseManagerRemote
to interact with the task.
Implementations§
Source§impl<R> ResponseManagerHandle<R>
impl<R> ResponseManagerHandle<R>
Sourcepub fn new(task: JoinHandle<()>, sender: UnboundedSender<Message<R>>) -> Self
pub fn new(task: JoinHandle<()>, sender: UnboundedSender<Message<R>>) -> Self
Constructor, ment to be acquired by spawning a crate::ResponseManager
.
Sourcepub fn remote(&self) -> ResponseManagerRemote<R>
pub fn remote(&self) -> ResponseManagerRemote<R>
Copies a shareable self::ResponseManagerRemote
that can interact with the task.
Auto Trait Implementations§
impl<R> Freeze for ResponseManagerHandle<R>
impl<R> RefUnwindSafe for ResponseManagerHandle<R>
impl<R> Send for ResponseManagerHandle<R>
impl<R> Sync for ResponseManagerHandle<R>
impl<R> Unpin for ResponseManagerHandle<R>
impl<R> UnwindSafe for ResponseManagerHandle<R>
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