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