Trait timely_communication::Push
source · pub trait Push<T> {
fn push(&mut self, element: &mut Option<T>);
fn send(&mut self, element: T) { ... }
fn done(&mut self) { ... }
}
Expand description
Pushing elements of type T
.
Required Methods§
sourcefn push(&mut self, element: &mut Option<T>)
fn push(&mut self, element: &mut Option<T>)
Pushes element
and provides the opportunity to take ownership.
The value of element
after the call may be changed. A change does not imply anything other
than that the implementor took resources associated with element
and is returning other
resources.