Struct aligne::ResponseManagerHandle
source · [−]Expand description
Handle to the task of a crate::ResponseManager
, can spawn self::ResponseManagerRemote
to interact with the task.
Implementations
sourceimpl<R> ResponseManagerHandle<R> where
R: Send + Debug,
impl<R> ResponseManagerHandle<R> where
R: Send + Debug,
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> !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
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