pub struct GoFileMode(/* private fields */);Expand description
A Go os.FileMode value.
This type represents file permissions and type as used in Go’s os package. BuildKit and fsutil use this format for file synchronization.
Implementations§
Trait Implementations§
Source§impl Clone for GoFileMode
impl Clone for GoFileMode
Source§fn clone(&self) -> GoFileMode
fn clone(&self) -> GoFileMode
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 GoFileMode
impl Debug for GoFileMode
Source§impl From<GoFileMode> for u32
impl From<GoFileMode> for u32
Source§fn from(mode: GoFileMode) -> Self
fn from(mode: GoFileMode) -> Self
Converts to this type from the input type.
Source§impl From<UnixMode> for GoFileMode
Convert Unix mode_t to Go os.FileMode.
impl From<UnixMode> for GoFileMode
Convert Unix mode_t to Go os.FileMode.
This is the core conversion implementation.
Source§impl From<u32> for GoFileMode
impl From<u32> for GoFileMode
Source§impl Hash for GoFileMode
impl Hash for GoFileMode
Source§impl PartialEq for GoFileMode
impl PartialEq for GoFileMode
impl Copy for GoFileMode
impl Eq for GoFileMode
impl StructuralPartialEq for GoFileMode
Auto Trait Implementations§
impl Freeze for GoFileMode
impl RefUnwindSafe for GoFileMode
impl Send for GoFileMode
impl Sync for GoFileMode
impl Unpin for GoFileMode
impl UnwindSafe for GoFileMode
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