pub struct OpenDialogInner<S: Select> { /* private fields */ }Expand description
Model for the open dialog component
Trait Implementations§
Source§impl<S: Select + 'static> SimpleComponent for OpenDialogInner<S>
Widgets of the open dialog component.
impl<S: Select + 'static> SimpleComponent for OpenDialogInner<S>
Widgets of the open 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 = OpenDialogSettings
type Init = OpenDialogSettings
The parameter used to initialize the component.
Source§type Input = OpenDialogMsg
type Input = OpenDialogMsg
The message type that the component accepts as inputs.
Source§type Output = OpenDialogResponse<S>
type Output = OpenDialogResponse<S>
The message type that the component provides as outputs.
Source§type Root = FileChooserNative
type Root = FileChooserNative
The top-level widget of the component.
Source§type Widgets = OpenDialogInnerWidgets
type Widgets = OpenDialogInnerWidgets
The type that’s used for storing widgets created for this component.
Source§fn init(
settings: Self::Init,
root: Self::Root,
sender: ComponentSender<Self>,
) -> ComponentParts<Self>
fn init( settings: Self::Init, root: Self::Root, sender: ComponentSender<Self>, ) -> ComponentParts<Self>
Creates the initial model and view, docking it into the component.
Source§fn update(&mut self, message: Self::Input, _sender: ComponentSender<Self>)
fn update(&mut self, message: Self::Input, _sender: ComponentSender<Self>)
Processes inputs received by the component.
Auto Trait Implementations§
impl<S> Freeze for OpenDialogInner<S>
impl<S> RefUnwindSafe for OpenDialogInner<S>where
S: RefUnwindSafe,
impl<S> Send for OpenDialogInner<S>where
S: Send,
impl<S> Sync for OpenDialogInner<S>where
S: Sync,
impl<S> Unpin for OpenDialogInner<S>where
S: Unpin,
impl<S> UnwindSafe for OpenDialogInner<S>where
S: UnwindSafe,
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
Source§impl<C> Component for Cwhere
C: SimpleComponent,
impl<C> Component for Cwhere
C: SimpleComponent,
Source§type Init = <C as SimpleComponent>::Init
type Init = <C as SimpleComponent>::Init
The parameter used to initialize the component.
Source§type Input = <C as SimpleComponent>::Input
type Input = <C as SimpleComponent>::Input
The message type that the component accepts as inputs.
Source§type Output = <C as SimpleComponent>::Output
type Output = <C as SimpleComponent>::Output
The message type that the component provides as outputs.
Source§type Root = <C as SimpleComponent>::Root
type Root = <C as SimpleComponent>::Root
The top-level widget of the component.
Source§type Widgets = <C as SimpleComponent>::Widgets
type Widgets = <C as SimpleComponent>::Widgets
The type that’s used for storing widgets created for this component.
Source§type CommandOutput = ()
type CommandOutput = ()
Messages which are received from commands executing in the background.
Source§fn init(
init: <C as Component>::Init,
root: <C as Component>::Root,
sender: ComponentSender<C>,
) -> ComponentParts<C>
fn init( init: <C as Component>::Init, root: <C as Component>::Root, sender: ComponentSender<C>, ) -> ComponentParts<C>
Creates the initial model and view, docking it into the component.
Source§fn update(
&mut self,
message: <C as Component>::Input,
sender: ComponentSender<C>,
_root: &<C as Component>::Root,
)
fn update( &mut self, message: <C as Component>::Input, sender: ComponentSender<C>, _root: &<C as Component>::Root, )
Processes inputs received by the component.
Source§fn update_view(
&self,
widgets: &mut <C as Component>::Widgets,
sender: ComponentSender<C>,
)
fn update_view( &self, widgets: &mut <C as Component>::Widgets, sender: ComponentSender<C>, )
Updates the view after the model has been updated.
Source§fn shutdown(
&mut self,
widgets: &mut <C as Component>::Widgets,
output: Sender<<C as Component>::Output>,
)
fn shutdown( &mut self, widgets: &mut <C as Component>::Widgets, output: Sender<<C as Component>::Output>, )
Last method called before a component is shut down. Read more
Source§fn builder() -> ComponentBuilder<Self>
fn builder() -> ComponentBuilder<Self>
Create a builder for this 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
Source§fn update_with_view(
&mut self,
widgets: &mut Self::Widgets,
message: Self::Input,
sender: ComponentSender<Self>,
root: &Self::Root,
)
fn update_with_view( &mut self, widgets: &mut Self::Widgets, message: Self::Input, sender: ComponentSender<Self>, root: &Self::Root, )
Updates the model and view when a new input is received. Read more