pub struct CreateDirectory { /* private fields */ }Implementations§
Source§impl CreateDirectory
impl CreateDirectory
pub fn new(path: PathBuf) -> CreateDirectory
pub fn new_without_cleanup(path: PathBuf) -> CreateDirectory
Trait Implementations§
Source§impl Clone for CreateDirectory
impl Clone for CreateDirectory
Source§fn clone(&self) -> CreateDirectory
fn clone(&self) -> CreateDirectory
Returns a duplicate 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 Debug for CreateDirectory
impl Debug for CreateDirectory
Source§impl<'de> Deserialize<'de> for CreateDirectory
impl<'de> Deserialize<'de> for CreateDirectory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CreateDirectory
impl Display for CreateDirectory
Source§impl PartialEq for CreateDirectory
impl PartialEq for CreateDirectory
Source§impl Requirement for CreateDirectory
impl Requirement for CreateDirectory
const NAME: &'static str = "directory"
type CreateError<S: System> = DirectoryCreateError<S>
type ModifyError<S: System> = NeverError
type DeleteError<S: System> = DirectoryDeleteError<S>
type HasBeenCreatedError<S: System> = <S as System>::Error
fn create<S: System>(&self, system: &mut S) -> Result<(), Self::CreateError<S>>
fn modify<S: System>(&self, _system: &mut S) -> Result<(), Self::ModifyError<S>>
fn delete<S: System>(&self, system: &mut S) -> Result<(), Self::DeleteError<S>>
fn has_been_created<S: System>( &self, system: &mut S, ) -> Result<bool, Self::HasBeenCreatedError<S>>
Source§fn affects(&self, other: &Self) -> bool
fn affects(&self, other: &Self) -> bool
Determines whether the other requirement is satisfied if the current requirement already holds.
fn supports_modifications(&self) -> bool
fn can_undo(&self) -> bool
fn may_pre_exist(&self) -> bool
fn verify<S: System>(&self, system: &mut S) -> Result<bool, ()>
fn pre_existing_delete<S: System>( &self, _system: &mut S, ) -> Result<(), Self::DeleteError<S>>
Source§impl Serialize for CreateDirectory
impl Serialize for CreateDirectory
impl Eq for CreateDirectory
impl StructuralPartialEq for CreateDirectory
Auto Trait Implementations§
impl Freeze for CreateDirectory
impl RefUnwindSafe for CreateDirectory
impl Send for CreateDirectory
impl Sync for CreateDirectory
impl Unpin for CreateDirectory
impl UnwindSafe for CreateDirectory
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<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 more