Struct octocat_rs::github::command::Command
source · pub struct Command<T>where
T: Debug + Send,{ /* private fields */ }
Expand description
Implementations§
source§impl<T> Command<T>where
T: Debug + Send,
impl<T> Command<T>where T: Debug + Send,
sourcepub fn perform<A: Debug + Send>(
future: impl Future<Output = T> + Send + 'static,
f: impl Fn(T) -> A + Send + 'static
) -> Command<A>
pub fn perform<A: Debug + Send>( future: impl Future<Output = T> + Send + 'static, f: impl Fn(T) -> A + Send + 'static ) -> Command<A>
Creates a Command
that executes the given future when run.
sourcepub fn perform_multiple(futures: impl IntoIterator<Item = Command<T>>) -> Self
pub fn perform_multiple(futures: impl IntoIterator<Item = Command<T>>) -> Self
Creates a Command
that executes each future at once when run.
pub fn is_empty(&self) -> bool
sourcepub fn map<A: Debug + Send>(
self,
f: impl Fn(T) -> A + 'static + Send + Sync
) -> Command<A>where
T: 'static,
pub fn map<A: Debug + Send>( self, f: impl Fn(T) -> A + 'static + Send + Sync ) -> Command<A>where T: 'static,
Transforms the result of a Command
.
sourcepub fn into_futures(self) -> Vec<BoxFuture<T>>
pub fn into_futures(self) -> Vec<BoxFuture<T>>
Drops the current Command
instance and returns its futures.
Trait Implementations§
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§
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