pub struct NDArrayDriverBase {
pub port_base: PortDriverBase,
pub params: NDArrayDriverParams,
pub pool: Arc<NDArrayPool>,
pub array_output: NDArrayOutput,
pub queued_counter: Arc<QueuedArrayCounter>,
}Expand description
Base state for asynNDArrayDriver (file handling, attribute mgmt, pool).
Fields§
§port_base: PortDriverBase§params: NDArrayDriverParams§pool: Arc<NDArrayPool>§array_output: NDArrayOutput§queued_counter: Arc<QueuedArrayCounter>Implementations§
Source§impl NDArrayDriverBase
impl NDArrayDriverBase
pub fn new(port_name: &str, max_memory: usize) -> AsynResult<Self>
Sourcepub fn connect_downstream(&mut self, sender: NDArraySender)
pub fn connect_downstream(&mut self, sender: NDArraySender)
Connect a downstream channel-based receiver.
Sourcepub fn num_plugins(&self) -> usize
pub fn num_plugins(&self) -> usize
Number of connected downstream channels.
Sourcepub fn publish_array(&mut self, array: Arc<NDArray>) -> AsynResult<()>
pub fn publish_array(&mut self, array: Arc<NDArray>) -> AsynResult<()>
Publish an array: update counters, push to plugins and channel outputs.
Sourcepub fn create_file_name(&mut self) -> AsynResult<String>
pub fn create_file_name(&mut self) -> AsynResult<String>
Construct a file path from template, path, name, and number.
Sourcepub fn check_path(&mut self) -> AsynResult<bool>
pub fn check_path(&mut self) -> AsynResult<bool>
Check if the file path directory exists.
Auto Trait Implementations§
impl !Freeze for NDArrayDriverBase
impl !RefUnwindSafe for NDArrayDriverBase
impl Send for NDArrayDriverBase
impl Sync for NDArrayDriverBase
impl Unpin for NDArrayDriverBase
impl UnsafeUnpin for NDArrayDriverBase
impl !UnwindSafe for NDArrayDriverBase
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