pub struct Port<T: Clone, const N: usize>(/* private fields */);
Expand description
Port is a generic structure that can be used to store values of any type T
.
It is the main artifact to exchange data between components.
Note that, in no_std
environments, the capacity of the port N
must be known at compile time.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, const N: usize> RefUnwindSafe for Port<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Port<T, N>where
T: Send,
impl<T, const N: usize> Sync for Port<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for Port<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Port<T, N>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