pub struct EnetClient { /* private fields */ }
Implementations§
Source§impl EnetClient
impl EnetClient
pub async fn new<A>(addr: A) -> Result<Self, ClientConnectError>
pub fn devices(&self) -> &[Device]
pub fn device(&self, number: u32) -> Option<&Device>
pub async fn set_value( &mut self, number: u32, value: SetValue, ) -> Result<(), SetValuesCommandError>
pub async fn set_values( &mut self, values: impl IntoIterator<Item = ItemSetValue>, ) -> Result<(), SetValuesCommandError>
Auto Trait Implementations§
impl Freeze for EnetClient
impl !RefUnwindSafe for EnetClient
impl Send for EnetClient
impl Sync for EnetClient
impl Unpin for EnetClient
impl !UnwindSafe for EnetClient
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