pub struct UnitStreamOps;Available on crate feature
inter-task-wakeup only.Expand description
Operations for stream<()>.
Can be combined with RawStreamWriter and RawStreamReader as created
through UnitStreamOps::new
Implementations§
Source§impl UnitStreamOps
impl UnitStreamOps
Sourcepub fn new() -> (RawStreamWriter<Self>, RawStreamReader<Self>)
Available on crate feature async only.
pub fn new() -> (RawStreamWriter<Self>, RawStreamReader<Self>)
async only.Creates a new unit stream read/write pair.
Trait Implementations§
Source§impl Clone for UnitStreamOps
Available on crate feature async only.
impl Clone for UnitStreamOps
Available on crate feature
async only.Source§fn clone(&self) -> UnitStreamOps
fn clone(&self) -> UnitStreamOps
Returns a duplicate 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 UnitStreamOps
Available on crate feature
async only.Auto Trait Implementations§
impl Freeze for UnitStreamOps
impl RefUnwindSafe for UnitStreamOps
impl Send for UnitStreamOps
impl Sync for UnitStreamOps
impl Unpin for UnitStreamOps
impl UnwindSafe for UnitStreamOps
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