pub struct Prop<T>{ /* private fields */ }
Expand description
A typed prop
Implementations§
Source§impl<T> Prop<T>
impl<T> Prop<T>
Source§impl<P> Prop<P>
impl<P> Prop<P>
Sourcepub fn open(
&self,
open_options: &OpenOptions,
) -> Result<File, PayloadError<ProjectError>>
pub fn open( &self, open_options: &OpenOptions, ) -> Result<File, PayloadError<ProjectError>>
Attempt to open the file using given open_options
Sourcepub fn read(&self) -> Result<File, PayloadError<ProjectError>>
pub fn read(&self) -> Result<File, PayloadError<ProjectError>>
Attempt to read a file
Sourcepub fn create(&self) -> Result<File, PayloadError<ProjectError>>
pub fn create(&self) -> Result<File, PayloadError<ProjectError>>
Attempt to read a file
Trait Implementations§
Source§impl<T> Buildable for Prop<T>
impl<T> Buildable for Prop<T>
Source§fn get_dependencies(
&self,
project: &Project,
) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
fn get_dependencies( &self, project: &Project, ) -> Result<HashSet<TaskId>, PayloadError<ProjectError>>
Gets the dependencies required to build this task
Source§impl<T> Provider<T> for Prop<T>
impl<T> Provider<T> for Prop<T>
Source§fn missing_message(&self) -> String
fn missing_message(&self) -> String
The missing message for this provider
Source§fn fallible_get(&self) -> Result<T, ProviderError>
fn fallible_get(&self) -> Result<T, ProviderError>
Tries to get a value from this provider, returning an error if not available. Read more
Auto Trait Implementations§
impl<T> Freeze for Prop<T>
impl<T> RefUnwindSafe for Prop<T>
impl<T> Send for Prop<T>
impl<T> Sync for Prop<T>
impl<T> Unpin for Prop<T>
impl<T> UnwindSafe for Prop<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
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