[−][src]Struct iced_glow::Command
A collection of async operations.
You should be able to turn a future easily into a Command
, either by
using the From
trait or Command::perform
.
Implementations
impl<T> Command<T>
[src]
pub fn none() -> Command<T>
[src]
pub fn perform<A>(
future: impl Send + Future<Output = T> + 'static,
f: impl Send + Fn(T) -> A + 'static
) -> Command<A>
[src]
future: impl Send + Future<Output = T> + 'static,
f: impl Send + Fn(T) -> A + 'static
) -> Command<A>
Creates a Command
that performs the action of the given future.
pub fn map<A>(self, f: impl Send + Sync + Fn(T) -> A + 'static) -> Command<A> where
T: 'static,
[src]
T: 'static,
Applies a transformation to the result of a Command
.
pub fn batch(commands: impl IntoIterator<Item = Command<T>>) -> Command<T>
[src]
Creates a Command
that performs the actions of all the given
commands.
Once this command is run, all the commands will be executed at once.
pub fn futures(self) -> Vec<Pin<Box<dyn Future<Output = T> + 'static + Send>>>
[src]
Converts a Command
into its underlying list of futures.
Trait Implementations
impl<T> Debug for Command<T>
[src]
impl<T, A> From<A> for Command<T> where
A: Future<Output = T> + 'static + Send,
[src]
A: Future<Output = T> + 'static + Send,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Command<T>
impl<T> Send for Command<T>
impl<T> !Sync for Command<T>
impl<T> Unpin for Command<T>
impl<T> !UnwindSafe for Command<T>
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,