pub struct GenericPlatform { /* private fields */ }Expand description
Generic platform integration for testing and fallback scenarios
Implementations§
Source§impl GenericPlatform
impl GenericPlatform
Sourcepub fn with_simulation_mode(simulation_mode: SimulationMode) -> Self
pub fn with_simulation_mode(simulation_mode: SimulationMode) -> Self
Create a generic platform with specific simulation mode
Sourcepub fn configure_motion(&mut self, pattern: MotionPattern)
pub fn configure_motion(&mut self, pattern: MotionPattern)
Configure the motion pattern
Sourcepub fn set_quality_degradation(&mut self, degradation: f32)
pub fn set_quality_degradation(&mut self, degradation: f32)
Set quality degradation factor (0.0 = perfect, 1.0 = completely degraded)
Trait Implementations§
Source§impl Default for GenericPlatform
impl Default for GenericPlatform
Source§impl PlatformIntegration for GenericPlatform
impl PlatformIntegration for GenericPlatform
Source§fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize the platform integration
Source§fn get_tracking_data<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PlatformTrackingData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tracking_data<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PlatformTrackingData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get current tracking data
Source§fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if platform is available
Source§fn get_capabilities(&self) -> PlatformCapabilities
fn get_capabilities(&self) -> PlatformCapabilities
Get platform capabilities
Source§fn configure_tracking<'life0, 'async_trait>(
&'life0 mut self,
config: TrackingConfig,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn configure_tracking<'life0, 'async_trait>(
&'life0 mut self,
config: TrackingConfig,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set tracking configuration
Source§fn get_device_info(&self) -> DeviceInfo
fn get_device_info(&self) -> DeviceInfo
Get device information
Source§fn start_tracking<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_tracking<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start tracking session
Source§fn stop_tracking<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop_tracking<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop tracking session
Source§fn get_hand_tracking<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<HandTrackingData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_hand_tracking<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<HandTrackingData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get hand tracking data if available
Source§fn get_eye_tracking<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<EyeTrackingData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_eye_tracking<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<EyeTrackingData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get eye tracking data if available
Auto Trait Implementations§
impl Freeze for GenericPlatform
impl RefUnwindSafe for GenericPlatform
impl Send for GenericPlatform
impl Sync for GenericPlatform
impl Unpin for GenericPlatform
impl UnsafeUnpin for GenericPlatform
impl UnwindSafe for GenericPlatform
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more