[−][src]Struct vapix::Device
Implementations
impl<T: Transport> Device<T>
[src]
pub fn new<U>(transport: T, uri: U) -> Self where
U: Into<Uri>,
[src]
U: Into<Uri>,
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]
&'_ self
) -> Result<Services<'_, T>, Error<T::Error>>
Discover which VAPIX services the device supports.
Requires firmware >= 8.50.
pub async fn applications<'_, '_>(
&'_ self
) -> Result<Option<Applications<'_, T>>, Error<T::Error>>
[src]
&'_ self
) -> Result<Option<Applications<'_, T>>, Error<T::Error>>
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,
T: RefUnwindSafe,
impl<T> Send for Device<T> where
T: Send,
T: Send,
impl<T> Sync for Device<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Device<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Device<T> where
T: UnwindSafe,
T: 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> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,