pub enum BackResponse {
Proceed,
Handled,
}Expand description
What a Stack::on_back guard returns for one back-like event (a native back gesture/button,
or nav_back). Programmatic path writes are NOT guarded — the guard is a policy on the
user’s back affordance, matching Jetpack Compose’s BackHandler (docs/navigation.md).
Variants§
Proceed
Let the pop happen now.
Handled
Consume the back — the pop does NOT happen. Stash the BackRequest and call
BackRequest::proceed later (e.g. after a confirmation dialog) to perform the pop.
Trait Implementations§
Source§impl Clone for BackResponse
impl Clone for BackResponse
Source§fn clone(&self) -> BackResponse
fn clone(&self) -> BackResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackResponse
impl Debug for BackResponse
Source§impl PartialEq for BackResponse
impl PartialEq for BackResponse
Source§fn eq(&self, other: &BackResponse) -> bool
fn eq(&self, other: &BackResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackResponse
impl Eq for BackResponse
impl StructuralPartialEq for BackResponse
Auto Trait Implementations§
impl Freeze for BackResponse
impl RefUnwindSafe for BackResponse
impl Send for BackResponse
impl Sync for BackResponse
impl Unpin for BackResponse
impl UnsafeUnpin for BackResponse
impl UnwindSafe for BackResponse
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more