pub struct DevicePlacement {
pub encoder: DeviceSite,
pub adapter: DeviceSite,
}Expand description
Placement plan for a device surface encoder and adapter pair.
Fields§
§encoder: DeviceSiteSite that encodes samples and commands for the selected surface codec.
adapter: DeviceSiteLatency-critical adapter site placed at the device edge.
Implementations§
Source§impl DevicePlacement
impl DevicePlacement
Sourcepub fn new(encoder: DeviceSite, adapter: DeviceSite) -> Self
pub fn new(encoder: DeviceSite, adapter: DeviceSite) -> Self
Builds a device placement plan from an encoder and adapter site.
Sourcepub fn validate(&self) -> Result<(), PlacementError>
pub fn validate(&self) -> Result<(), PlacementError>
Validates placement invariants for live device operation.
Trait Implementations§
Source§impl Clone for DevicePlacement
impl Clone for DevicePlacement
Source§fn clone(&self) -> DevicePlacement
fn clone(&self) -> DevicePlacement
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 DevicePlacement
impl Debug for DevicePlacement
impl Eq for DevicePlacement
Source§impl PartialEq for DevicePlacement
impl PartialEq for DevicePlacement
impl StructuralPartialEq for DevicePlacement
Auto Trait Implementations§
impl Freeze for DevicePlacement
impl RefUnwindSafe for DevicePlacement
impl Send for DevicePlacement
impl Sync for DevicePlacement
impl Unpin for DevicePlacement
impl UnsafeUnpin for DevicePlacement
impl UnwindSafe for DevicePlacement
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