Enum layer_system::Change
source · pub enum Change<S, E> {
Stay,
Defer,
Add(Box<dyn Layer<S, E>>),
Remove,
Replace(Box<dyn Layer<S, E>>),
Clear(Box<dyn Layer<S, E>>),
Close,
}
Expand description
The action, that will be done after handling an event by a layer.
Variants
Stay
Don’t do anything
Defer
Pass the event to the next layer.
Add(Box<dyn Layer<S, E>>)
Add a new layer on top of the current layer.
Remove
Remove the current layer.
Replace(Box<dyn Layer<S, E>>)
Replace the current layer with a new layer.
Clear(Box<dyn Layer<S, E>>)
Clear all layers and replace them with a new layer.
Close
Remove all layers.
Auto Trait Implementations
impl<S, E> !RefUnwindSafe for Change<S, E>
impl<S, E> !Send for Change<S, E>
impl<S, E> !Sync for Change<S, E>
impl<S, E> Unpin for Change<S, E>
impl<S, E> !UnwindSafe for Change<S, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more