pub struct DeviceHostSpec {
pub profile: DeviceProfile,
pub route: RouteArg,
pub placement: DevicePlacement,
pub stale: DeviceHostStalePolicy,
pub consent: DeviceConsentPolicy,
}Expand description
Input required to compose a device host session.
Fields§
§profile: DeviceProfileStream-facing device profile selected by the product verb.
route: RouteArgRoute selected by the product verb.
placement: DevicePlacementPlacement plan for the surface encoder and edge-local adapter.
stale: DeviceHostStalePolicyStale-sample policy used by the adapter loop.
consent: DeviceConsentPolicyConsent policy required before the device route is used.
Implementations§
Source§impl DeviceHostSpec
impl DeviceHostSpec
Sourcepub fn new(
profile: DeviceProfile,
route: RouteArg,
placement: DevicePlacement,
stale: DeviceHostStalePolicy,
consent: DeviceConsentPolicy,
) -> Self
pub fn new( profile: DeviceProfile, route: RouteArg, placement: DevicePlacement, stale: DeviceHostStalePolicy, consent: DeviceConsentPolicy, ) -> Self
Builds a device host composition request.
Trait Implementations§
Source§impl Clone for DeviceHostSpec
impl Clone for DeviceHostSpec
Source§fn clone(&self) -> DeviceHostSpec
fn clone(&self) -> DeviceHostSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceHostSpec
impl Debug for DeviceHostSpec
impl Eq for DeviceHostSpec
Source§impl PartialEq for DeviceHostSpec
impl PartialEq for DeviceHostSpec
impl StructuralPartialEq for DeviceHostSpec
Auto Trait Implementations§
impl Freeze for DeviceHostSpec
impl RefUnwindSafe for DeviceHostSpec
impl Send for DeviceHostSpec
impl Sync for DeviceHostSpec
impl Unpin for DeviceHostSpec
impl UnsafeUnpin for DeviceHostSpec
impl UnwindSafe for DeviceHostSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more