pub struct ADDriverBase {
pub port_base: PortDriverBase,
pub params: ADDriverParams,
pub pool: Arc<NDArrayPool>,
pub array_output: NDArrayOutput,
pub queued_counter: Arc<QueuedArrayCounter>,
}Expand description
Base state for ADDriver (extends NDArrayDriver with detector-specific params).
Fields§
§port_base: PortDriverBase§params: ADDriverParams§pool: Arc<NDArrayPool>§array_output: NDArrayOutput§queued_counter: Arc<QueuedArrayCounter>Implementations§
Source§impl ADDriverBase
impl ADDriverBase
pub fn new( port_name: &str, max_size_x: i32, max_size_y: i32, 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 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, fire callbacks.
Sourcepub fn set_shutter(&mut self, open: bool) -> AsynResult<()>
pub fn set_shutter(&mut self, open: bool) -> AsynResult<()>
Set shutter state (open/close). In C++ this dispatches based on shutter mode.
Auto Trait Implementations§
impl !Freeze for ADDriverBase
impl !RefUnwindSafe for ADDriverBase
impl Send for ADDriverBase
impl Sync for ADDriverBase
impl Unpin for ADDriverBase
impl UnsafeUnpin for ADDriverBase
impl !UnwindSafe for ADDriverBase
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