pub struct Completer<T, E> { /* private fields */ }Expand description
Dart Future which can be resolved from Rust.
Implementations§
Source§impl<T, E> Completer<T, E>
impl<T, E> Completer<T, E>
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new Dart_PersistentHandle for the Dart Completer.
Persists the created Dart_Handle so it won’t be moved by the Dart VM
GC.
Sourcepub fn future(&self) -> Dart_Handle
pub fn future(&self) -> Dart_Handle
Returns a Dart_Handle to the Dart Future controlled by this
Completer.
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for Completer<T, E>
impl<T, E> RefUnwindSafe for Completer<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> !Send for Completer<T, E>
impl<T, E> !Sync for Completer<T, E>
impl<T, E> Unpin for Completer<T, E>
impl<T, E> UnwindSafe for Completer<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
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