pub struct AttentionBudget {
pub foveal_deg: f64,
pub peripheral_deg: f64,
pub max_lit_panels: usize,
pub camera_live: bool,
}Expand description
Content-rate attention budget for spatial glasses.
Fields§
§foveal_deg: f64Maximum gaze angle for foveal detail.
peripheral_deg: f64Maximum gaze angle for peripheral detail.
max_lit_panels: usizeMaximum non-critical panels lit at once.
camera_live: boolWhether a camera stream is live and should raise the privacy shade.
Implementations§
Source§impl AttentionBudget
impl AttentionBudget
Sourcepub fn new(max_lit_panels: usize) -> Self
pub fn new(max_lit_panels: usize) -> Self
Builds a budget with stable spatial-glasses defaults.
Sourcepub fn spatial_default() -> Self
pub fn spatial_default() -> Self
Returns the default Viture-style spatial budget.
Sourcepub fn for_profile(profile: &DeviceProfile) -> Self
pub fn for_profile(profile: &DeviceProfile) -> Self
Builds a content-rate budget from a device profile.
Sourcepub fn with_camera_live(self, camera_live: bool) -> Self
pub fn with_camera_live(self, camera_live: bool) -> Self
Sets whether the privacy shade is raised.
Trait Implementations§
Source§impl Clone for AttentionBudget
impl Clone for AttentionBudget
Source§fn clone(&self) -> AttentionBudget
fn clone(&self) -> AttentionBudget
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 moreimpl Copy for AttentionBudget
Source§impl Debug for AttentionBudget
impl Debug for AttentionBudget
Source§impl PartialEq for AttentionBudget
impl PartialEq for AttentionBudget
impl StructuralPartialEq for AttentionBudget
Auto Trait Implementations§
impl Freeze for AttentionBudget
impl RefUnwindSafe for AttentionBudget
impl Send for AttentionBudget
impl Sync for AttentionBudget
impl Unpin for AttentionBudget
impl UnsafeUnpin for AttentionBudget
impl UnwindSafe for AttentionBudget
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