[−][src]Struct vcontrol::VControl
Methods
impl<D: Device> VControl<D>
[src]
pub fn connect(device: Optolink) -> Result<VControl<D>, Error>
[src]
pub fn get(&mut self, command: &str) -> Result<Value, Error>
[src]
Gets the value for the given command.
If the command specified is not available, an IO error of the kind AddrNotAvailable
is returned.
pub fn set(&mut self, command: &str, input: &Value) -> Result<(), Error>
[src]
Sets the value for the given command.
If the command specified is not available, an IO error of the kind AddrNotAvailable
is returned.
Trait Implementations
Auto Trait Implementations
impl<D> RefUnwindSafe for VControl<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for VControl<D> where
D: Send,
D: Send,
impl<D> Sync for VControl<D> where
D: Sync,
D: Sync,
impl<D> Unpin for VControl<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for VControl<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,