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<T>
to skip spawning workers.
Stream
Returns a Dart Stream<T>
.
Trait Implementations§
source§impl Clone for FfiCallMode
impl Clone for FfiCallMode
source§fn clone(&self) -> FfiCallMode
fn clone(&self) -> FfiCallMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl 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§
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