pub struct Handle<CTX: Context> {
pub result_rx: Receiver<CTX::GPRES>,
pub continuation_tx: Sender<Box<dyn FnOnce(CTX::GPROC) -> Option<()> + Send>>,
pub join_or_continue: Either<JoinHandle<Option<()>>, Option<Box<dyn FnOnce(CTX::GPROC) -> Option<()> + Send>>>,
}
Expand description
Handle to a process held by the session.
Fields§
§result_rx: Receiver<CTX::GPRES>
§continuation_tx: Sender<Box<dyn FnOnce(CTX::GPROC) -> Option<()> + Send>>
§join_or_continue: Either<JoinHandle<Option<()>>, Option<Box<dyn FnOnce(CTX::GPROC) -> Option<()> + Send>>>
When the session drops, the finish
method will either join or send
a continuation depending on the contents of this field.
Auto Trait Implementations§
impl<CTX> !RefUnwindSafe for Handle<CTX>
impl<CTX> Send for Handle<CTX>
impl<CTX> !Sync for Handle<CTX>
impl<CTX> Unpin for Handle<CTX>
impl<CTX> !UnwindSafe for Handle<CTX>
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