pub enum Action<T> {
Output(T),
LoadFont {
bytes: Cow<'static, [u8]>,
channel: Sender<Result<(), Error>>,
},
Widget(Box<dyn Operation>),
Clipboard(Action),
Window(Action),
System(Action),
Exit,
}
Expand description
An action that the iced runtime can perform.
Variants§
Output(T)
Output some value.
LoadFont
Load a font from its bytes.
Fields
Widget(Box<dyn Operation>)
Run a widget operation.
Clipboard(Action)
Run a clipboard action.
Window(Action)
Run a window action.
System(Action)
Run a system action.
Exit
Exits the runtime.
This will normally close any application windows and terminate the runtime loop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Action<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Action<T>
impl<T> Send for Action<T>where
T: Send,
impl<T> !Sync for Action<T>
impl<T> Unpin for Action<T>where
T: Unpin,
impl<T> !UnwindSafe for Action<T>
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