pub struct DegradationResolver;Expand description
Resolves device degradation against observed route/accessory data.
Implementations§
Source§impl DegradationResolver
impl DegradationResolver
Sourcepub fn resolve(
requested: &DeviceProfile,
observed: &ObservedRoute,
) -> Degradation
pub fn resolve( requested: &DeviceProfile, observed: &ObservedRoute, ) -> Degradation
Maps the requested profile to the highest observed tier with reasons for every unavailable requested capability.
Returns a display-only degradation result with a single explanation.
Trait Implementations§
Source§impl Clone for DegradationResolver
impl Clone for DegradationResolver
Source§fn clone(&self) -> DegradationResolver
fn clone(&self) -> DegradationResolver
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 DegradationResolver
impl Debug for DegradationResolver
Source§impl Default for DegradationResolver
impl Default for DegradationResolver
Source§fn default() -> DegradationResolver
fn default() -> DegradationResolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DegradationResolver
impl RefUnwindSafe for DegradationResolver
impl Send for DegradationResolver
impl Sync for DegradationResolver
impl Unpin for DegradationResolver
impl UnsafeUnpin for DegradationResolver
impl UnwindSafe for DegradationResolver
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