pub struct NDArraySender { /* private fields */ }Expand description
Sender held by upstream. Supports blocking and non-blocking modes.
Implementations§
Source§impl NDArraySender
impl NDArraySender
Sourcepub fn send(&self, array: Arc<NDArray>)
pub fn send(&self, array: Arc<NDArray>)
Send an array downstream. Behavior depends on mode:
- Disabled (
enable_callbacks=0): silently dropped - Blocking (
blocking_callbacks=1): processed inline on caller’s thread - Non-blocking (default): queued for data thread (dropped if full)
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Whether this sender’s plugin has callbacks enabled.
Sourcepub fn is_blocking(&self) -> bool
pub fn is_blocking(&self) -> bool
Whether this sender’s plugin is in blocking mode.
pub fn port_name(&self) -> &str
pub fn dropped_count(&self) -> u64
Sourcepub fn set_queued_counter(&mut self, counter: Arc<QueuedArrayCounter>)
pub fn set_queued_counter(&mut self, counter: Arc<QueuedArrayCounter>)
Set the queued-array counter for tracking in-flight arrays.
Trait Implementations§
Source§impl Clone for NDArraySender
impl Clone for NDArraySender
Source§fn clone(&self) -> NDArraySender
fn clone(&self) -> NDArraySender
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NDArraySender
impl !RefUnwindSafe for NDArraySender
impl Send for NDArraySender
impl Sync for NDArraySender
impl Unpin for NDArraySender
impl UnsafeUnpin for NDArraySender
impl !UnwindSafe for NDArraySender
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