pub struct Client { /* private fields */ }
Expand description
A High-level SMB client interface.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(config: ClientConfig) -> Self
pub fn new(config: ClientConfig) -> Self
Creates a new Client
instance with the given configuration.
pub async fn close(&mut self) -> Result<()>
Sourcepub async fn ipc_connect(
&mut self,
server: &str,
user_name: &str,
password: String,
) -> Result<()>
pub async fn ipc_connect( &mut self, server: &str, user_name: &str, password: String, ) -> Result<()>
Connects to the IPC$ share on the specified server using the provided username and password.
pub async fn create_file( &mut self, path: &UncPath, args: &FileCreateArgs, ) -> Result<Resource>
pub async fn open_pipe(&mut self, server: &str, pipe_name: &str) -> Result<Pipe>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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