pub struct SelectionMode {
pub mapping_id: Uuid,
pub edge_id: String,
pub candidates: Vec<TargetCandidate>,
pub cursor: usize,
/* private fields */
}Expand description
Per-(device_type, device_id) transient state used by target-selection
mode. Keyed off the mapping that declared target_switch_on. While
this struct is in RoutingEngine::selection, the device has entered
mode: Rotate browses cursor, Press commits, any other input
cancels.
Fields§
§mapping_id: Uuid§edge_id: String§candidates: Vec<TargetCandidate>§cursor: usizeImplementations§
Source§impl SelectionMode
impl SelectionMode
Trait Implementations§
Source§impl Clone for SelectionMode
impl Clone for SelectionMode
Source§fn clone(&self) -> SelectionMode
fn clone(&self) -> SelectionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SelectionMode
impl RefUnwindSafe for SelectionMode
impl Send for SelectionMode
impl Sync for SelectionMode
impl Unpin for SelectionMode
impl UnsafeUnpin for SelectionMode
impl UnwindSafe for SelectionMode
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