pub struct TaskProvider<T, R, F>where
T: Task + Send + Sync + Debug + 'static,
F: Fn(&Executable<T>) -> R + Send + Sync,
R: Clone + Send + Sync,{ /* private fields */ }
Implementations§
Source§impl<T, F, R> TaskProvider<T, R, F>
impl<T, F, R> TaskProvider<T, R, F>
pub fn new(handle: TaskHandle<T>, lift: F) -> TaskProvider<T, R, F>
Trait Implementations§
Source§impl<T, F, R> Buildable for TaskProvider<T, R, F>
impl<T, F, R> Buildable for TaskProvider<T, R, F>
Source§fn get_dependencies(
&self,
_: &Project,
) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
fn get_dependencies( &self, _: &Project, ) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
Gets the dependencies required to build this task
Source§impl<T, R, F> Clone for TaskProvider<T, R, F>
impl<T, R, F> Clone for TaskProvider<T, R, F>
Source§fn clone(&self) -> TaskProvider<T, R, F>
fn clone(&self) -> TaskProvider<T, R, F>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T, F, R> Debug for TaskProvider<T, R, F>
impl<T, F, R> Debug for TaskProvider<T, R, F>
Source§impl<T, F, R> Provider<R> for TaskProvider<T, R, F>
impl<T, F, R> Provider<R> for TaskProvider<T, R, F>
Source§fn missing_message(&self) -> String
fn missing_message(&self) -> String
The missing message for this provider
Source§fn fallible_get(&self) -> Result<R, ProviderError>
fn fallible_get(&self) -> Result<R, ProviderError>
Tries to get a value from this provider, returning an error if not available. Read more
Auto Trait Implementations§
impl<T, R, F> Freeze for TaskProvider<T, R, F>where
F: Freeze,
impl<T, R, F> RefUnwindSafe for TaskProvider<T, R, F>where
F: RefUnwindSafe,
impl<T, R, F> Send for TaskProvider<T, R, F>
impl<T, R, F> Sync for TaskProvider<T, R, F>
impl<T, R, F> Unpin for TaskProvider<T, R, F>where
F: Unpin,
impl<T, R, F> UnwindSafe for TaskProvider<T, R, F>where
F: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<B> GetBuildable for B
impl<B> GetBuildable for B
Source§fn as_buildable(&self) -> BuildableObject
fn as_buildable(&self) -> BuildableObject
Returns a dependency which contains the tasks which build this object.
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<B> IntoBuildable for Bwhere
B: Buildable,
impl<B> IntoBuildable for Bwhere
B: Buildable,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<P, T> IntoProvider<T> for P
impl<P, T> IntoProvider<T> for P
type Provider = P
fn into_provider(self) -> <P as IntoProvider<T>>::Provider
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<P, T> ProviderExt<T> for P
impl<P, T> ProviderExt<T> for P
Source§fn map<R, F>(self, transform: F) -> Map<T, R, F, Self>
fn map<R, F>(self, transform: F) -> Map<T, R, F, Self>
Creates a provider that can map the output of one provider into some other value. Read more
Source§fn flat_map<R, P, F>(self, transform: F) -> FlatMap<T, R, Self, P, F>
fn flat_map<R, P, F>(self, transform: F) -> FlatMap<T, R, Self, P, F>
Creates a provider that can map the output of one provider with type
T
into some other value that’s
also a provider of type R
. The created provider is a provider of type R
Read moreSource§fn flatten<B>(self) -> FlatMap<T, B, Self, T, fn(T) -> T>
fn flatten<B>(self) -> FlatMap<T, B, Self, T, fn(T) -> T>
Flattens a provider that provides another provider