pub struct PollCall<'call, 'turn, 'd: 'turn, F> { /* private fields */ }Expand description
Exact, single-use admission for polling one pinned fiber. It is constructed only after consuming one application-work credit and cannot be retagged to a different fiber type.
Implementations§
Source§impl<'call, 'turn, 'd, F> PollCall<'call, 'turn, 'd, F>
impl<'call, 'turn, 'd, F> PollCall<'call, 'turn, 'd, F>
pub fn into_fiber(self) -> Pin<&'call mut F>
pub fn into_context(self) -> &'call mut Context<'turn, 'd>
pub fn into_parts(self) -> (Pin<&'call mut F>, &'call mut Context<'turn, 'd>)
Sourcepub fn into_admit(self) -> (Pin<&'call mut F>, Admission<'call, 'turn, 'd>)
pub fn into_admit(self) -> (Pin<&'call mut F>, Admission<'call, 'turn, 'd>)
Retains this call’s credit for one child task while lending the owner for its pinned projection and state transition.
Auto Trait Implementations§
impl<'call, 'turn, 'd, F> !RefUnwindSafe for PollCall<'call, 'turn, 'd, F>
impl<'call, 'turn, 'd, F> !Send for PollCall<'call, 'turn, 'd, F>
impl<'call, 'turn, 'd, F> !Sync for PollCall<'call, 'turn, 'd, F>
impl<'call, 'turn, 'd, F> !UnwindSafe for PollCall<'call, 'turn, 'd, F>
impl<'call, 'turn, 'd, F> Forget for PollCall<'call, 'turn, 'd, F>
impl<'call, 'turn, 'd, F> Freeze for PollCall<'call, 'turn, 'd, F>
impl<'call, 'turn, 'd, F> Move for PollCall<'call, 'turn, 'd, F>
impl<'call, 'turn, 'd, F> Unpin for PollCall<'call, 'turn, 'd, F>
impl<'call, 'turn, 'd, F> UnsafeUnpin for PollCall<'call, 'turn, 'd, F>
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