pub struct ConfigHandle { /* private fields */ }Implementations§
Source§impl ConfigHandle
impl ConfigHandle
Sourcepub async fn add_user(
&self,
name: impl Into<String>,
password: impl AsRef<str>,
) -> Result<(), ConfigError>
pub async fn add_user( &self, name: impl Into<String>, password: impl AsRef<str>, ) -> Result<(), ConfigError>
Add a user, or replace the password of an existing one. Replacing a password ends the user’s sessions.
pub async fn remove_user(&self, name: &str) -> Result<(), ConfigError>
Grant user access to a share. Lowering a user’s access ends the
user’s trees on the share, so it applies to open connections too.
Sourcepub fn set_max_opens_per_connection(&self, limit: usize)
pub fn set_max_opens_per_connection(&self, limit: usize)
Set how many files one connection may hold open at once. A CREATE
past the limit fails with STATUS_INSUFFICIENT_RESOURCES; opens already
held stay open. The default is
DEFAULT_MAX_OPENS_PER_CONNECTION.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigHandle
impl !UnwindSafe for ConfigHandle
impl Freeze for ConfigHandle
impl Send for ConfigHandle
impl Sync for ConfigHandle
impl Unpin for ConfigHandle
impl UnsafeUnpin for ConfigHandle
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