pub enum StateLayout {
FillAndCenter,
CenterHorizontal,
Inline,
}Expand description
Determines how the intermediate states (Loading, Error) are positioned within the UI.
Variants§
FillAndCenter
Centers the content and greedily consumes all available space in the parent Ui.
Note: This can cause the UI to snap or shrink abruptly when transitioning
to the Finished state if the successful content does not also fill the space.
CenterHorizontal
Centers the content horizontally, consuming only the vertical space required.
This prevents the surrounding UI from aggressively shifting and is the recommended default.
Inline
Lays out the state content inline, directly following the parent Ui’s standard flow.
Trait Implementations§
Source§impl Clone for StateLayout
impl Clone for StateLayout
Source§fn clone(&self) -> StateLayout
fn clone(&self) -> StateLayout
Returns a duplicate of the value. Read more
1.0.0 · 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 StateLayout
impl Debug for StateLayout
Source§impl Default for StateLayout
impl Default for StateLayout
Source§fn default() -> StateLayout
fn default() -> StateLayout
Returns the “default value” for a type. Read more
Source§impl PartialEq for StateLayout
impl PartialEq for StateLayout
impl Copy for StateLayout
impl Eq for StateLayout
impl StructuralPartialEq for StateLayout
Auto Trait Implementations§
impl Freeze for StateLayout
impl RefUnwindSafe for StateLayout
impl Send for StateLayout
impl Sync for StateLayout
impl Unpin for StateLayout
impl UnsafeUnpin for StateLayout
impl UnwindSafe for StateLayout
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