pub struct ResumableFrame<D> { /* private fields */ }Expand description
A surface-neutral, one-shot-completion resumable frame.
Implementations§
Source§impl<D> ResumableFrame<D>
impl<D> ResumableFrame<D>
Sourcepub fn new(limits: FrameLimits, driver: D) -> Self
pub fn new(limits: FrameLimits, driver: D) -> Self
Creates a frame driven by driver under explicit limits.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns whether the frame has returned or failed.
Sourcepub fn resume<T, R, E>(
&mut self,
packet: ResumePacket<T, E>,
) -> Result<ResumeResult<T, R, E>, FrameError>
pub fn resume<T, R, E>( &mut self, packet: ResumePacket<T, E>, ) -> Result<ResumeResult<T, R, E>, FrameError>
Delivers one packet and returns the next observable transition.
Auto Trait Implementations§
impl<D> Freeze for ResumableFrame<D>where
D: Freeze,
impl<D> RefUnwindSafe for ResumableFrame<D>where
D: RefUnwindSafe,
impl<D> Send for ResumableFrame<D>where
D: Send,
impl<D> Sync for ResumableFrame<D>where
D: Sync,
impl<D> Unpin for ResumableFrame<D>where
D: Unpin,
impl<D> UnsafeUnpin for ResumableFrame<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for ResumableFrame<D>where
D: UnwindSafe,
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