pub struct SeqInstructor<'s, 'de> { /* private fields */ }
Expand description
Allows passing instructions to the Async Serde executor to iterate a sequence.
Implementations§
Source§impl<'s, 'de> SeqInstructor<'s, 'de>
impl<'s, 'de> SeqInstructor<'s, 'de>
Sourcepub fn ask(
&mut self,
deserialize: Deserialize,
) -> Result<impl Future<Output = Step<'s, 'de>> + '_, Option<Deserialize>>
pub fn ask( &mut self, deserialize: Deserialize, ) -> Result<impl Future<Output = Step<'s, 'de>> + '_, Option<Deserialize>>
Asks for a type from this instructor.
§Panics
Panics if called from the wrong depth (Instructor
moved into
incorrect future).
Auto Trait Implementations§
impl<'s, 'de> Freeze for SeqInstructor<'s, 'de>
impl<'s, 'de> !RefUnwindSafe for SeqInstructor<'s, 'de>
impl<'s, 'de> !Send for SeqInstructor<'s, 'de>
impl<'s, 'de> !Sync for SeqInstructor<'s, 'de>
impl<'s, 'de> Unpin for SeqInstructor<'s, 'de>
impl<'s, 'de> !UnwindSafe for SeqInstructor<'s, 'de>
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