pub struct MetaDataBuilder(/* private fields */);
Expand description
Builder of MetaData
.
Implementations§
Source§impl MetaDataBuilder
impl MetaDataBuilder
Sourcepub fn permissions(&mut self, perm: Permissions) -> &mut Self
pub fn permissions(&mut self, perm: Permissions) -> &mut Self
Set permissions of the metadata to be built.
Sourcepub fn time(
&mut self,
accessed: UnixTimeStamp,
modified: UnixTimeStamp,
) -> &mut Self
pub fn time( &mut self, accessed: UnixTimeStamp, modified: UnixTimeStamp, ) -> &mut Self
Set accessed and modified time of the metadata to be built.
Trait Implementations§
Source§impl Clone for MetaDataBuilder
impl Clone for MetaDataBuilder
Source§fn clone(&self) -> MetaDataBuilder
fn clone(&self) -> MetaDataBuilder
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 Debug for MetaDataBuilder
impl Debug for MetaDataBuilder
Source§impl Default for MetaDataBuilder
impl Default for MetaDataBuilder
Source§fn default() -> MetaDataBuilder
fn default() -> MetaDataBuilder
Returns the “default value” for a type. Read more
impl Copy for MetaDataBuilder
Auto Trait Implementations§
impl Freeze for MetaDataBuilder
impl RefUnwindSafe for MetaDataBuilder
impl Send for MetaDataBuilder
impl Sync for MetaDataBuilder
impl Unpin for MetaDataBuilder
impl UnwindSafe for MetaDataBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)