Struct flutter_rust_bridge::SyncReturn
source · pub struct SyncReturn<T>(pub T);
Expand description
Use this struct in return type of your function, in order to tell the code generator the function should return synchronously. Otherwise, it is by default asynchronously.
Tuple Fields§
§0: T
Auto Trait Implementations§
impl<T> RefUnwindSafe for SyncReturn<T>where
T: RefUnwindSafe,
impl<T> Send for SyncReturn<T>where
T: Send,
impl<T> Sync for SyncReturn<T>where
T: Sync,
impl<T> Unpin for SyncReturn<T>where
T: Unpin,
impl<T> UnwindSafe for SyncReturn<T>where
T: UnwindSafe,
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