Struct flutter_rust_bridge::rust2dart::TaskCallback
source · [−]pub struct TaskCallback { /* private fields */ }
Expand description
A callback that receives the return value of Rust functions.
Implementations
sourceimpl TaskCallback
impl TaskCallback
sourcepub fn stream_sink<T: IntoDart>(&self) -> StreamSink<T>
pub fn stream_sink<T: IntoDart>(&self) -> StreamSink<T>
Create a new StreamSink of the specified type.
Auto Trait Implementations
impl RefUnwindSafe for TaskCallback
impl Send for TaskCallback
impl Sync for TaskCallback
impl Unpin for TaskCallback
impl UnwindSafe for TaskCallback
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more