pub struct InteractionSafePoint { /* private fields */ }Expand description
Frame-boundary safety probe deciding whether an atomic swap may commit without disrupting interaction.
Implementations§
Source§impl InteractionSafePoint
Frame-boundary safety checks on InteractionSafePoint.
impl InteractionSafePoint
Frame-boundary safety checks on InteractionSafePoint.
Sourcepub fn is_safe_to_swap(&self) -> bool
pub fn is_safe_to_swap(&self) -> bool
Returns true when swapping the UI subtree will not disrupt gestures, IME, transitions, blocking tx, or frame budget.
§Returns
bool- Whether atomic hot-swap is safe at this boundary.
Sourcepub fn defer_reason(&self) -> Option<&'static str>
pub fn defer_reason(&self) -> Option<&'static str>
Returns the human-readable reason why a swap must be deferred, or None if safe.
§Returns
Option<&'static str>- Deferral reason if unsafe.
Source§impl InteractionSafePoint
impl InteractionSafePoint
pub fn get_active_gesture(&self) -> bool
pub fn get_mut_active_gesture(&mut self) -> &mut bool
pub fn set_active_gesture(&mut self, val: bool) -> &mut Self
pub fn get_ime_composing(&self) -> bool
pub fn get_mut_ime_composing(&mut self) -> &mut bool
pub fn set_ime_composing(&mut self, val: bool) -> &mut Self
pub fn get_active_transition(&self) -> bool
pub fn get_mut_active_transition(&mut self) -> &mut bool
pub fn set_active_transition(&mut self, val: bool) -> &mut Self
pub fn get_blocking_in_flight_tx(&self) -> usize
pub fn get_mut_blocking_in_flight_tx(&mut self) -> &mut usize
pub fn set_blocking_in_flight_tx(&mut self, val: usize) -> &mut Self
pub fn get_frame_budget_remaining_us(&self) -> u64
pub fn get_mut_frame_budget_remaining_us(&mut self) -> &mut u64
pub fn set_frame_budget_remaining_us(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for InteractionSafePoint
impl Clone for InteractionSafePoint
impl Copy for InteractionSafePoint
Source§impl Debug for InteractionSafePoint
impl Debug for InteractionSafePoint
Source§impl Default for InteractionSafePoint
Safe default InteractionSafePoint representing an idle frame boundary with ample budget.
impl Default for InteractionSafePoint
Safe default InteractionSafePoint representing an idle frame boundary with ample budget.
impl Eq for InteractionSafePoint
Source§impl Hash for InteractionSafePoint
impl Hash for InteractionSafePoint
Source§impl PartialEq for InteractionSafePoint
impl PartialEq for InteractionSafePoint
impl StructuralPartialEq for InteractionSafePoint
Auto Trait Implementations§
impl Forget for InteractionSafePoint
impl Freeze for InteractionSafePoint
impl Move for InteractionSafePoint
impl RefUnwindSafe for InteractionSafePoint
impl Send for InteractionSafePoint
impl Sync for InteractionSafePoint
impl Unpin for InteractionSafePoint
impl UnsafeUnpin for InteractionSafePoint
impl UnwindSafe for InteractionSafePoint
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