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> RefUnwindSafe for Completer<T, E>where E: RefUnwindSafe, T: 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 E: RefUnwindSafe, T: 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