pub enum NativePullResult<'js> {
Ready(Value<'js>),
Eof,
Pending(Pin<Box<dyn Future<Output = Result<Option<Value<'js>>>> + 'js>>),
}Expand description
Native async pull: returns Ok(Some(chunk)) or Ok(None) for EOF. Result of a native pull: data ready, EOF, or need async.
Variants§
Ready(Value<'js>)
Data chunk ready synchronously
Eof
EOF — no more data
Pending(Pin<Box<dyn Future<Output = Result<Option<Value<'js>>>> + 'js>>)
Need async — returns a future for the pending case
Auto Trait Implementations§
impl<'js> !RefUnwindSafe for NativePullResult<'js>
impl<'js> !Send for NativePullResult<'js>
impl<'js> !Sync for NativePullResult<'js>
impl<'js> !UnwindSafe for NativePullResult<'js>
impl<'js> Freeze for NativePullResult<'js>
impl<'js> Unpin for NativePullResult<'js>
impl<'js> UnsafeUnpin for NativePullResult<'js>
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