pub enum ManagerRequest {
List {
responder: ManagerListResponder,
},
SetOrder {
old_position: u64,
new_position: u64,
responder: ManagerSetOrderResponder,
},
Cycle {
responder: ManagerCycleResponder,
},
Focus {
position: u64,
responder: ManagerFocusResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: ManagerControlHandle,
method_type: MethodType,
},
}Variants§
List
List ids of all views in the order they are being presented.
Fields
§
responder: ManagerListResponderSetOrder
Moves the view at the given old_position to the given new_position.
Items in between are shifted and all other views keep their same relative order.
Window Manager expects both positions to be within the range of the length of
views currently presented. If invalid args are provided, the command will not
execute and an error message will be logged.
Cycle
Shifts all views forward by one position, view at position 0 is moved to the end.
Fields
§
responder: ManagerCycleResponderFocus
Sets keyboard focus to the view at position and makes that view visible.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: ManagerControlHandle§
method_type: MethodTypeImplementations§
Source§impl ManagerRequest
impl ManagerRequest
pub fn into_list(self) -> Option<ManagerListResponder>
pub fn into_set_order(self) -> Option<(u64, u64, ManagerSetOrderResponder)>
pub fn into_cycle(self) -> Option<ManagerCycleResponder>
pub fn into_focus(self) -> Option<(u64, ManagerFocusResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ManagerRequest
impl !UnwindSafe for ManagerRequest
impl Freeze for ManagerRequest
impl Send for ManagerRequest
impl Sync for ManagerRequest
impl Unpin for ManagerRequest
impl UnsafeUnpin for ManagerRequest
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