pub struct UnitStreamOps;Available on crate features
async and 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>)
pub fn new() -> (RawStreamWriter<Self>, RawStreamReader<Self>)
Creates a new unit stream read/write pair.
Trait Implementations§
Source§impl Clone for UnitStreamOps
impl Clone for UnitStreamOps
Source§fn clone(&self) -> UnitStreamOps
fn clone(&self) -> UnitStreamOps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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
Auto Trait Implementations§
impl Freeze for UnitStreamOps
impl RefUnwindSafe for UnitStreamOps
impl Send for UnitStreamOps
impl Sync for UnitStreamOps
impl Unpin for UnitStreamOps
impl UnsafeUnpin 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