pub enum Request {
Enter {
frame: FrameId,
payload: Value,
},
Leave,
Jump {
depth: usize,
},
Go {
places: Vec<Entry>,
},
SetMode {
mode: FrameId,
payload: Value,
},
PushMode {
mode: FrameId,
payload: Value,
},
PopMode,
ClearMode {
group: GroupId,
},
Back,
}Expand description
A transition asked of the owner.
Variants§
Enter
Enters a place under the top one.
Leave
Leaves the top place.
Jump
Leaves places until depth are left (0: the root).
Go
Goes to a place path (a crumb from elsewhere, “Go there”).
SetMode
Sets a mode (sticky), replacing its group’s.
PushMode
Pushes a mode (temporary), replacing its group’s until popped.
PopMode
Pops the last pushed mode.
ClearMode
Turns a group’s mode off.
Back
Back: pops the last pushed mode, else leaves the top place.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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