Struct flutter_rust_bridge::rust2dart::StreamSink
source · pub struct StreamSink<T> { /* private fields */ }
Expand description
A sink to send asynchronous data back to Dart.
Represented as a Dart
Stream
.
Implementations§
source§impl<T> StreamSink<T>
impl<T> StreamSink<T>
sourcepub fn add<D: IntoDart>(&self, value: T) -> boolwhere
T: IntoIntoDart<D>,
pub fn add<D: IntoDart>(&self, value: T) -> boolwhere
T: IntoIntoDart<D>,
Add data to the stream. Returns false when data could not be sent, or the stream has been closed.
Trait Implementations§
source§impl<T: Clone> Clone for StreamSink<T>
impl<T: Clone> Clone for StreamSink<T>
source§fn clone(&self) -> StreamSink<T>
fn clone(&self) -> StreamSink<T>
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 moreAuto Trait Implementations§
impl<T> RefUnwindSafe for StreamSink<T>where
T: RefUnwindSafe,
impl<T> Send for StreamSink<T>where
T: Send,
impl<T> Sync for StreamSink<T>where
T: Sync,
impl<T> Unpin for StreamSink<T>where
T: Unpin,
impl<T> UnwindSafe for StreamSink<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