Enum flutter_rust_bridge::handler::FfiCallMode
source · [−]pub enum FfiCallMode {
Normal,
Sync,
Stream,
}
Expand description
The types of return values for a particular Rust function.
Variants
Normal
The default mode, returns a Dart Future<T>
.
Sync
Used by SyncReturn<Vec<u8>>
to skip spawning workers.
Stream
Returns a Dart Stream<T>
.
Trait Implementations
sourceimpl Clone for FfiCallMode
impl Clone for FfiCallMode
sourcefn clone(&self) -> FfiCallMode
fn clone(&self) -> FfiCallMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for FfiCallMode
Auto Trait Implementations
impl RefUnwindSafe for FfiCallMode
impl Send for FfiCallMode
impl Sync for FfiCallMode
impl Unpin for FfiCallMode
impl UnwindSafe for FfiCallMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more