Struct makeup::components::spinner::Spinner
source · pub struct Spinner<Message: Debug + Send + Sync + Clone> { /* private fields */ }
Expand description
A simple component that renders a spinner with the given text.
Implementations§
Trait Implementations§
source§impl<Message: Debug + Send + Sync + Clone + 'static> Component for Spinner<Message>
impl<Message: Debug + Send + Sync + Clone + 'static> Component for Spinner<Message>
source§fn children(&self) -> Option<Vec<&Box<dyn Component<Message = Self::Message>>>>
fn children(&self) -> Option<Vec<&Box<dyn Component<Message = Self::Message>>>>
The children this component has. May be empty when present. Read more
source§fn children_mut(
&mut self
) -> Option<Vec<&mut Box<dyn Component<Message = Self::Message>>>>
fn children_mut( &mut self ) -> Option<Vec<&mut Box<dyn Component<Message = Self::Message>>>>
The children this component has, but mutable. May be empty when present.
source§fn update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut MakeupUpdate<'_, Self>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut MakeupUpdate<'_, Self>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process any messages that have been sent to this component. Messages
are expected to be process asynchronously, ie. any long-running
operations should be
tokio::spawn
ed as a task.source§fn render<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 RenderContext
) -> Pin<Box<dyn Future<Output = Result<DrawCommandBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn render<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 RenderContext
) -> Pin<Box<dyn Future<Output = Result<DrawCommandBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Render this component.
source§fn key(&self) -> Key
fn key(&self) -> Key
A unique key for this component. See
generate_key
.source§fn dimensions(&self) -> Result<Option<Dimensions>>
fn dimensions(&self) -> Result<Option<Dimensions>>
The dimensions of this component. Coordinates are calculated
automatically by the parent component that manages layout, or are
implied by render order.
source§fn batch(&self, commands: Vec<DrawCommand>) -> Result<DrawCommandBatch>
fn batch(&self, commands: Vec<DrawCommand>) -> Result<DrawCommandBatch>
Batch the given render commands with this component’s key.
fn style(&self) -> Option<Style>
Auto Trait Implementations§
impl<Message> RefUnwindSafe for Spinner<Message>where
Message: RefUnwindSafe,
impl<Message> Send for Spinner<Message>
impl<Message> Sync for Spinner<Message>
impl<Message> Unpin for Spinner<Message>where
Message: Unpin,
impl<Message> UnwindSafe for Spinner<Message>where
Message: UnwindSafe,
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