[][src]Struct vcontrol::VControl

pub struct VControl<D: Device> { /* fields omitted */ }

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

impl<D: Debug + Device> Debug for VControl<D>[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for VControl<D> where
    D: RefUnwindSafe

impl<D> Send for VControl<D> where
    D: Send

impl<D> Sync for VControl<D> where
    D: Sync

impl<D> Unpin for VControl<D> where
    D: Unpin

impl<D> UnwindSafe for VControl<D> where
    D: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.