pub struct Alert {
pub settings: AlertSettings,
/* private fields */
}Expand description
Alert dialog component.
Fields§
§settings: AlertSettingsThe settings used by the alert component.
Trait Implementations§
Source§impl Component for Alert
Widgets of the alert dialog component.
impl Component for Alert
Widgets of the alert dialog component.
Source§fn update_view(
&self,
widgets: &mut Self::Widgets,
sender: ComponentSender<Self>,
)
fn update_view( &self, widgets: &mut Self::Widgets, sender: ComponentSender<Self>, )
Update the view to represent the updated model.
Source§type Init = AlertSettings
type Init = AlertSettings
The parameter used to initialize the component.
Source§type Output = AlertResponse
type Output = AlertResponse
The message type that the component provides as outputs.
Source§type CommandOutput = ()
type CommandOutput = ()
Messages which are received from commands executing in the background.
Source§type Widgets = AlertWidgets
type Widgets = AlertWidgets
The type that’s used for storing widgets created for this component.
Source§fn init(
settings: AlertSettings,
root: Self::Root,
sender: ComponentSender<Self>,
) -> ComponentParts<Self>
fn init( settings: AlertSettings, root: Self::Root, sender: ComponentSender<Self>, ) -> ComponentParts<Self>
Creates the initial model and view, docking it into the component.
Source§fn update_with_view(
&mut self,
widgets: &mut Self::Widgets,
input: AlertMsg,
sender: ComponentSender<Self>,
_root: &Self::Root,
)
fn update_with_view( &mut self, widgets: &mut Self::Widgets, input: AlertMsg, sender: ComponentSender<Self>, _root: &Self::Root, )
Updates the model and view when a new input is received. Read more
Source§fn builder() -> ComponentBuilder<Self>
fn builder() -> ComponentBuilder<Self>
Create a builder for this component.
Source§fn update(
&mut self,
message: Self::Input,
sender: ComponentSender<Self>,
root: &Self::Root,
)
fn update( &mut self, message: Self::Input, sender: ComponentSender<Self>, root: &Self::Root, )
Processes inputs received by the component.
Source§fn update_cmd(
&mut self,
message: Self::CommandOutput,
sender: ComponentSender<Self>,
root: &Self::Root,
)
fn update_cmd( &mut self, message: Self::CommandOutput, sender: ComponentSender<Self>, root: &Self::Root, )
Defines how the component should respond to command updates.
Source§fn update_cmd_with_view(
&mut self,
widgets: &mut Self::Widgets,
message: Self::CommandOutput,
sender: ComponentSender<Self>,
root: &Self::Root,
)
fn update_cmd_with_view( &mut self, widgets: &mut Self::Widgets, message: Self::CommandOutput, sender: ComponentSender<Self>, root: &Self::Root, )
Updates the model and view upon completion of a command. Read more
Auto Trait Implementations§
impl Freeze for Alert
impl RefUnwindSafe for Alert
impl !Send for Alert
impl !Sync for Alert
impl Unpin for Alert
impl UnwindSafe for Alert
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
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