pub struct Share {
pub name: String,
pub root: PathBuf,
pub vfs: Arc<dyn Vfs>,
pub is_ipc: bool,
pub encrypt: bool,
pub compress: bool,
pub ca: bool,
}Expand description
A published share backed by a VFS instance.
Fields§
§name: StringShare name as clients request it (lowercased).
root: PathBufPhysical root directory of the share.
vfs: Arc<dyn Vfs>Backend serving this share.
is_ipc: boolTrue for the virtual IPC$ pipe share.
encrypt: boolTrue when the share requires SMB3 encryption (SMB2_SHAREFLAG_ENCRYPT_DATA): its TREE_CONNECT response advertises the flag and every message on the tree is sealed ([MS-SMB2] §3.3.5.7).
compress: boolTrue when the share advertises SMB2_SHAREFLAG_COMPRESS_DATA in its TREE_CONNECT response ([MS-SMB2] §2.2.10).
ca: boolTrue for a continuously-available share ([MS-SMB2] §2.2.10): its TREE_CONNECT response advertises SMB2_SHAREFLAG_CONTINUOUSLY_AVAILABLE and SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY, and it may grant persistent handles ([MS-SMB2] §3.3.5.9.11).
Trait Implementations§
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