pub struct Fiber<E, A> {
pub id: FiberId,
pub join_future: Shared<BoxFuture<'static, Exit<E, A>>>,
pub token: CancellationToken,
}Expand description
A handle to a running fiber.
Fields§
§id: FiberId§join_future: Shared<BoxFuture<'static, Exit<E, A>>>§token: CancellationTokenImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<E, A> Freeze for Fiber<E, A>
impl<E, A> !RefUnwindSafe for Fiber<E, A>
impl<E, A> Send for Fiber<E, A>
impl<E, A> Sync for Fiber<E, A>
impl<E, A> Unpin for Fiber<E, A>
impl<E, A> !UnwindSafe for Fiber<E, A>
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