pub enum Msg {
SelectBranch(String),
SelectPath(String),
ShowPane(Pane),
SetScale(f32),
SetBlob(Blob),
}Expand description
A robot-/CLI-addressable control message (FC-2) — the named boundary a headless
driver (or a host) drives the git browser through, the same effect the canvas
clicks produce. Applied by GitView::update; it is the only mutation path.
Variants§
SelectBranch(String)
Select a branch by its name (FC-5: a stable id, never a row index) — the branch-list click.
SelectPath(String)
Open a tree path by its name (FC-5: a stable id) — the tree-entry click.
ShowPane(Pane)
Switch the middle pane between the tree and the commit log — the tab click.
SetScale(f32)
Set the source zoom (clamped to 0.5..=4.0) — the host set_scale.
SetBlob(Blob)
Replace the open source blob (and select its path) — the host set_blob /
the gix file-open path.
Trait Implementations§
impl StructuralPartialEq for Msg
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
Blanket Implementations§
impl<T> Allocation for T
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