[][src]Struct vapix::Device

pub struct Device<T: Transport> { /* fields omitted */ }

Implementations

impl<T: Transport> Device<T>[src]

pub fn new<U>(transport: T, uri: U) -> Self where
    U: Into<Uri>, 
[src]

pub fn parameters(&self) -> Parameters<'_, T>[src]

Access Parameters directly, without testing for support. Subsequent calls may fail if the device does not actually support the Parameters interface.

Alternately, .services() probes for support of this interface and provides an Option<Parameters> if the device indicates support. This is the better path for newer devices, but ancient devices may support .parameters() without supporting .services(), so both paths are necessary.

pub async fn services<'_, '_>(
    &'_ self
) -> Result<Services<'_, T>, Error<T::Error>>
[src]

Discover which VAPIX services the device supports.

Requires firmware >= 8.50.

pub async fn applications<'_, '_>(
    &'_ self
) -> Result<Option<Applications<'_, T>>, Error<T::Error>>
[src]

Return the applications interface, if supported by the device.

pub fn system_log(&self) -> SystemLog<'_, T>[src]

Return the system log interface for this device.

Trait Implementations

impl<T: Clone + Transport> Clone for Device<T>[src]

impl<T: Debug + Transport> Debug for Device<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Device<T> where
    T: RefUnwindSafe

impl<T> Send for Device<T> where
    T: Send

impl<T> Sync for Device<T> where
    T: Sync

impl<T> Unpin for Device<T> where
    T: Unpin

impl<T> UnwindSafe for Device<T> where
    T: 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> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,