pub struct SLMPClient { /* private fields */ }Implementations§
Source§impl SLMPClient
impl SLMPClient
pub fn new(connection_props: SLMP4EConnectionProps) -> Self
pub async fn close(&self)
pub fn set_send_timeout(&mut self, dur: Duration)
pub fn set_recv_timeout(&mut self, dur: Duration)
pub async fn connect(&self) -> Result<()>
pub async fn bulk_write<'a>( &mut self, start_device: Device, data: &'a [TypedData], ) -> Result<()>
pub async fn random_write<'a>(&mut self, data: &'a [DeviceData]) -> Result<()>
pub async fn block_write<'a>( &mut self, data: &'a [BlockedDeviceData<'a>], ) -> Result<()>
pub async fn bulk_read( &mut self, start_device: Device, device_num: usize, data_type: DataType, ) -> Result<Vec<DeviceData>>
pub async fn random_read( &mut self, devices: &[TypedDevice], ) -> Result<Vec<DeviceData>>
pub async fn block_read( &mut self, device_blocks: &[DeviceBlock], ) -> Result<Vec<DeviceData>>
Trait Implementations§
Source§impl Clone for SLMPClient
impl Clone for SLMPClient
Source§fn clone(&self) -> SLMPClient
fn clone(&self) -> SLMPClient
Returns a duplicate of the value. Read more
1.0.0§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 SLMPClient
impl !RefUnwindSafe for SLMPClient
impl Send for SLMPClient
impl Sync for SLMPClient
impl Unpin for SLMPClient
impl !UnwindSafe for SLMPClient
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)