pub struct OutPort<T>(/* private fields */);
Expand description
Output port. This structure can only inject messages. Thus, it cannot read messages.
Note that we do not implement the Clone
trait in purpose, as we want to avoid their misuse.
Implementations§
Source§impl<T> OutPort<T>
impl<T> OutPort<T>
Sourcepub unsafe fn add_value(&self, value: T)
pub unsafe fn add_value(&self, value: T)
Adds a new value to the output port.
§Safety
This method can only be called when implementing the Atomic::lambda
method.
Furthermore, this port must be one of the output ports of the implementer.
Sourcepub unsafe fn add_values(&self, values: &[T])where
T: Clone,
pub unsafe fn add_values(&self, values: &[T])where
T: Clone,
Adds new values from a slice to the output port.
§Safety
This method can only be called when implementing the Atomic::lambda
method.
Furthermore, this port must be one of the output ports of the implementer.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OutPort<T>
impl<T> !RefUnwindSafe for OutPort<T>
impl<T> Send for OutPort<T>
impl<T> Sync for OutPort<T>
impl<T> Unpin for OutPort<T>
impl<T> !UnwindSafe for OutPort<T>
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