pub struct QueuedHostLinkClient { /* private fields */ }Implementations§
Source§impl QueuedHostLinkClient
impl QueuedHostLinkClient
pub fn new(client: HostLinkClient) -> Self
pub fn inner_client(&self) -> &HostLinkClient
pub async fn is_open(&self) -> bool
pub async fn open(&self) -> Result<(), HostLinkError>
pub async fn close(&self) -> Result<(), HostLinkError>
pub async fn set_trace_hook(&self, trace_hook: Option<TraceHook>)
pub async fn execute_async<F, Fut, T>( &self, operation: F, ) -> Result<T, HostLinkError>
pub async fn send_raw(&self, body: &str) -> Result<String, HostLinkError>
pub async fn read_comments( &self, device: &str, strip_padding: bool, ) -> Result<String, HostLinkError>
pub async fn read_typed( &self, device: &str, dtype: &str, ) -> Result<HostLinkValue, HostLinkError>
pub async fn read_timer_counter( &self, device: &str, ) -> Result<TimerCounterValue, HostLinkError>
pub async fn read_timer( &self, device: &str, ) -> Result<TimerCounterValue, HostLinkError>
pub async fn read_counter( &self, device: &str, ) -> Result<TimerCounterValue, HostLinkError>
pub async fn write_typed<T: HostLinkPayloadValue>( &self, device: &str, dtype: &str, value: T, ) -> Result<(), HostLinkError>
pub async fn write_bit_in_word( &self, device: &str, bit_index: u8, value: bool, ) -> Result<(), HostLinkError>
pub async fn read_named<S: AsRef<str>>( &self, addresses: &[S], ) -> Result<NamedSnapshot, HostLinkError>
pub async fn read_device_range_catalog( &self, ) -> Result<KvDeviceRangeCatalog, HostLinkError>
pub fn poll<'a, S: AsRef<str> + 'a>( &'a self, addresses: &'a [S], interval: Duration, ) -> impl Stream<Item = Result<NamedSnapshot, HostLinkError>> + 'a
pub async fn read_words( &self, device: &str, count: usize, ) -> Result<Vec<u16>, HostLinkError>
pub async fn read_dwords( &self, device: &str, count: usize, ) -> Result<Vec<u32>, HostLinkError>
Trait Implementations§
Source§impl Clone for QueuedHostLinkClient
impl Clone for QueuedHostLinkClient
Source§fn clone(&self) -> QueuedHostLinkClient
fn clone(&self) -> QueuedHostLinkClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueuedHostLinkClient
impl !RefUnwindSafe for QueuedHostLinkClient
impl Send for QueuedHostLinkClient
impl Sync for QueuedHostLinkClient
impl Unpin for QueuedHostLinkClient
impl UnsafeUnpin for QueuedHostLinkClient
impl !UnwindSafe for QueuedHostLinkClient
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