pub struct NDArrayOutput { /* private fields */ }Expand description
Fan-out: broadcasts arrays to multiple downstream receivers.
Implementations§
Source§impl NDArrayOutput
impl NDArrayOutput
pub fn new() -> Self
pub fn add(&mut self, sender: NDArraySender)
pub fn remove(&mut self, port_name: &str)
Sourcepub fn take(&mut self, port_name: &str) -> Option<NDArraySender>
pub fn take(&mut self, port_name: &str) -> Option<NDArraySender>
Remove a sender by port name and return it (if found).
pub fn total_dropped(&self) -> u64
pub fn num_senders(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NDArrayOutput
impl !RefUnwindSafe for NDArrayOutput
impl Send for NDArrayOutput
impl Sync for NDArrayOutput
impl Unpin for NDArrayOutput
impl UnsafeUnpin for NDArrayOutput
impl !UnwindSafe for NDArrayOutput
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