asyn-rs 0.9.1

Rust port of EPICS asyn - async device I/O framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::any::Any;
use std::sync::Arc;

use crate::error::AsynResult;
use crate::user::AsynUser;

/// Interface for opaque pointer I/O.
pub trait AsynGenericPointer: Send + Sync {
    fn read_generic_pointer(&mut self, user: &AsynUser) -> AsynResult<Arc<dyn Any + Send + Sync>>;
    fn write_generic_pointer(
        &mut self,
        user: &mut AsynUser,
        value: Arc<dyn Any + Send + Sync>,
    ) -> AsynResult<()>;
}