pub enum FieldFuture<'a> {
Value(Option<FieldValue<'a>>),
Future(BoxFuture<'a, Result<Option<FieldValue<'a>>>>),
}Available on crate feature
dynamic-schema only.Expand description
A future that returned from field resolver
Variants§
Value(Option<FieldValue<'a>>)
A pure value without any async operation
Future(BoxFuture<'a, Result<Option<FieldValue<'a>>>>)
A future that returned from field resolver
Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for FieldFuture<'a>
impl<'a> !RefUnwindSafe for FieldFuture<'a>
impl<'a> Send for FieldFuture<'a>
impl<'a> !Sync for FieldFuture<'a>
impl<'a> Unpin for FieldFuture<'a>
impl<'a> !UnwindSafe for FieldFuture<'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