Struct relm4_components::web_image::WebImage
source · pub struct WebImage { /* private fields */ }
Expand description
Reusable component for loading images from the web.
Trait Implementations§
source§impl Component for WebImage
impl Component for WebImage
§type CommandOutput = Option<(usize, VecDeque<u8, Global>)>
type CommandOutput = Option<(usize, VecDeque<u8, Global>)>
Messages which are received from commands executing in the background.
§type Input = WebImageMsg
type Input = WebImageMsg
The message type that the component accepts as inputs.
source§fn init(
url: Self::Init,
root: &Self::Root,
sender: ComponentSender<Self>
) -> ComponentParts<Self>
fn init( url: 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,
input: Self::Input,
sender: ComponentSender<Self>,
root: &Self::Root
)
fn update( &mut self, input: 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 builder() -> ComponentBuilder<Self>
fn builder() -> ComponentBuilder<Self>
Create a builder for this component.
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_view(
&self,
widgets: &mut Self::Widgets,
sender: ComponentSender<Self>
)
fn update_view( &self, widgets: &mut Self::Widgets, sender: ComponentSender<Self> )
Updates the view after the model has been updated.
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
source§impl PartialEq<WebImage> for WebImage
impl PartialEq<WebImage> for WebImage
impl Eq for WebImage
impl StructuralEq for WebImage
impl StructuralPartialEq for WebImage
Auto Trait Implementations§
impl RefUnwindSafe for WebImage
impl !Send for WebImage
impl !Sync for WebImage
impl Unpin for WebImage
impl UnwindSafe for WebImage
Blanket Implementations§
source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.