pub struct CoilPoints { /* private fields */ }Implementations§
Source§impl CoilPoints
impl CoilPoints
pub fn new(start_address: u16, count: usize) -> Self
pub fn from_values(start_address: u16, values: Vec<bool>) -> Self
pub fn start_address(&self) -> u16
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn values(&self) -> &[bool]
pub fn get(&self, address: u16) -> Option<bool>
pub fn set(&mut self, address: u16, value: bool) -> Result<(), ClientError>
pub fn apply_read( &mut self, start_address: u16, values: &[bool], ) -> Result<(), ClientError>
Trait Implementations§
Source§impl Clone for CoilPoints
impl Clone for CoilPoints
Source§fn clone(&self) -> CoilPoints
fn clone(&self) -> CoilPoints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoilPoints
impl Debug for CoilPoints
Source§impl PartialEq for CoilPoints
impl PartialEq for CoilPoints
impl Eq for CoilPoints
impl StructuralPartialEq for CoilPoints
Auto Trait Implementations§
impl Freeze for CoilPoints
impl RefUnwindSafe for CoilPoints
impl Send for CoilPoints
impl Sync for CoilPoints
impl Unpin for CoilPoints
impl UnsafeUnpin for CoilPoints
impl UnwindSafe for CoilPoints
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