pub struct VControl { /* private fields */ }Expand description
Representation of an Optolink connection to a specific Device using a specific Protocol.
Implementations§
Source§impl VControl
impl VControl
Sourcepub async fn connect(optolink: Optolink) -> Result<Self, Error>
pub async fn connect(optolink: Optolink) -> Result<Self, Error>
Automatically detect the Device and Protocol and connect to it.
pub fn device(&self) -> &'static Device
pub fn protocol(&mut self) -> Protocol
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VControl
impl !RefUnwindSafe for VControl
impl Send for VControl
impl Sync for VControl
impl Unpin for VControl
impl !UnwindSafe for VControl
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