Skip to main content

DeviceEdgeSession

Struct DeviceEdgeSession 

Source
pub struct DeviceEdgeSession { /* private fields */ }
Expand description

Composed device host session returned to per-device verbs.

Implementations§

Source§

impl DeviceEdgeSession

Source

pub fn is_live(&self) -> bool

Returns whether host composition joined a device session.

Source

pub fn provider_kind(&self) -> DeviceProviderKind

Returns the provider source used for this session.

Source

pub fn profile(&self) -> &DeviceProfile

Returns the selected stream-facing profile.

Source

pub fn route(&self) -> &RouteArg

Returns the selected route.

Source

pub fn placement(&self) -> &DevicePlacement

Returns the validated device placement.

Source

pub fn stale_policy(&self) -> DeviceHostStalePolicy

Returns the selected stale-sample policy.

Source

pub fn consent_policy(&self) -> &DeviceConsentPolicy

Returns the selected consent policy.

Source

pub fn adapter_loop(&self) -> &DeviceAdapterLoopPlan

Returns the immutable adapter-loop pacing plan.

Source

pub fn adapter_loop_mut(&mut self) -> &mut DeviceAdapterLoopPlan

Returns the mutable adapter-loop pacing plan.

Source

pub fn hub_join(&self) -> &DeviceSurfaceHubJoin

Returns the surface-hub join plan.

Source

pub fn device_session(&self) -> &dyn DeviceSession

Returns the composed device session.

Source

pub fn device_session_mut(&mut self) -> &mut dyn DeviceSession

Returns the composed device session mutably.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.