pub struct HostCapabilityProfile { /* private fields */ }Expand description
Complete capability and channel declaration for a target host platform.
Implementations§
Source§impl HostCapabilityProfile
Platform capability synthesis and gate helpers for HostCapabilityProfile.
impl HostCapabilityProfile
Platform capability synthesis and gate helpers for HostCapabilityProfile.
Sourcepub fn from_platform(
platform: PlatformKind,
capabilities: PlatformCapabilities,
) -> Self
pub fn from_platform( platform: PlatformKind, capabilities: PlatformCapabilities, ) -> Self
Sourcepub fn single_channel(
platform: PlatformKind,
candidate: RenderBackendCandidate,
backend: GraphicsBackend,
) -> Self
pub fn single_channel( platform: PlatformKind, candidate: RenderBackendCandidate, backend: GraphicsBackend, ) -> Self
Sourcepub fn from_host_channel_capabilities(
platform: PlatformKind,
caps: &HostChannelCapabilities,
) -> Self
pub fn from_host_channel_capabilities( platform: PlatformKind, caps: &HostChannelCapabilities, ) -> Self
Converts host-declared HostChannelCapabilities (HarmonyOS, Wearables, MiniApps, QuickApps) into a unified HostCapabilityProfile enforcing single-channel locking and simulated-profile honesty.
§Arguments
PlatformKind- Target execution platform.&HostChannelCapabilities- Host-declared channel capability matrix.
§Returns
Self- Unified capability profile ready forAdaptiveRenderRouter.
Sourcepub fn is_single_channel(&self) -> bool
pub fn is_single_channel(&self) -> bool
Sourcepub fn candidate_passes_gate(
&self,
candidate: RenderBackendCandidate,
) -> Result<(), VisualEquivalenceFailure>
pub fn candidate_passes_gate( &self, candidate: RenderBackendCandidate, ) -> Result<(), VisualEquivalenceFailure>
Sourcepub fn best_available_candidate(
&self,
exclude: Option<RenderBackendCandidate>,
) -> RenderBackendCandidate
pub fn best_available_candidate( &self, exclude: Option<RenderBackendCandidate>, ) -> RenderBackendCandidate
Returns the first eligible visually-equivalent candidate matching priority order (GpuDirect first, excluding exclude).
§Arguments
&Self- Host profile reference.Option<RenderBackendCandidate>- Optional candidate to skip (e.g., a failed startup or faulted backend).
§Returns
RenderBackendCandidate- Highest-priority eligible fallback candidate.
Sourcepub fn graphics_backend_for(
&self,
candidate: RenderBackendCandidate,
) -> GraphicsBackend
pub fn graphics_backend_for( &self, candidate: RenderBackendCandidate, ) -> GraphicsBackend
Source§impl HostCapabilityProfile
impl HostCapabilityProfile
pub fn get_platform(&self) -> PlatformKind
pub fn get_mut_platform(&mut self) -> &mut PlatformKind
pub fn set_platform(&mut self, val: PlatformKind) -> &mut Self
pub fn get_candidates(&self) -> &Vec<CandidateCapabilities>
pub fn get_mut_candidates(&mut self) -> &mut Vec<CandidateCapabilities>
pub fn set_candidates(&mut self, val: Vec<CandidateCapabilities>) -> &mut Self
pub fn get_single_channel_only(&self) -> bool
pub fn get_mut_single_channel_only(&mut self) -> &mut bool
pub fn set_single_channel_only(&mut self, val: bool) -> &mut Self
pub fn get_baseline_contract(&self) -> VisualEquivalenceContract
pub fn get_mut_baseline_contract(&mut self) -> &mut VisualEquivalenceContract
pub fn set_baseline_contract( &mut self, val: VisualEquivalenceContract, ) -> &mut Self
Trait Implementations§
Source§impl Clone for HostCapabilityProfile
impl Clone for HostCapabilityProfile
Source§impl Debug for HostCapabilityProfile
impl Debug for HostCapabilityProfile
Source§impl Default for HostCapabilityProfile
Default host capability profile for headless software execution.
impl Default for HostCapabilityProfile
Default host capability profile for headless software execution.
impl Eq for HostCapabilityProfile
Source§impl PartialEq for HostCapabilityProfile
impl PartialEq for HostCapabilityProfile
impl StructuralPartialEq for HostCapabilityProfile
Auto Trait Implementations§
impl Forget for HostCapabilityProfile
impl Freeze for HostCapabilityProfile
impl Move for HostCapabilityProfile
impl RefUnwindSafe for HostCapabilityProfile
impl Send for HostCapabilityProfilewhere
RawVecInner: Send,
impl Sync for HostCapabilityProfilewhere
RawVecInner: Sync,
impl Unpin for HostCapabilityProfile
impl UnsafeUnpin for HostCapabilityProfile
impl UnwindSafe for HostCapabilityProfilewhere
RawVecInner: UnwindSafe,
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