pub struct ShareAccess(pub u32);Expand description
Share access flags (MS-SMB2 2.2.13).
Tuple Fields§
§0: u32Implementations§
Sourcepub const FILE_SHARE_READ: u32 = 0x0000_0001
pub const FILE_SHARE_READ: u32 = 0x0000_0001
Allow other opens to read the file.
Sourcepub const FILE_SHARE_WRITE: u32 = 0x0000_0002
pub const FILE_SHARE_WRITE: u32 = 0x0000_0002
Allow other opens to write the file.
Sourcepub const FILE_SHARE_DELETE: u32 = 0x0000_0004
pub const FILE_SHARE_DELETE: u32 = 0x0000_0004
Allow other opens to delete the file.
Trait Implementations§
Source§fn clone(&self) -> ShareAccess
fn clone(&self) -> ShareAccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> ShareAccess
fn default() -> ShareAccess
Returns the “default value” for a type. Read more
Source§fn eq(&self, other: &ShareAccess) -> bool
fn eq(&self, other: &ShareAccess) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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