Expand description
§Pavão
Pavão is a Rust client library for SMB2/SMB3 which exposes type-safe functions to interact with the C libsmbclient
§Get Started
§Adding pavao to your cargo toml dependencies:
pavao = "0.2"
§Example
use pavao::{SmbClient, SmbCredentials, SmbOptions};
let client = SmbClient::new(
SmbCredentials::default()
.server("smb://localhost:3445")
.share("/temp")
.username("test")
.password("test")
.workgroup("pavao"),
SmbOptions::default()
.case_sensitive(true)
.one_share_per_server(true),
)
.unwrap();
// drop connection
drop(client);RunFurther examples can be found under the examples/ directory in the Github repository
Structs§
- Smb protocol client
- SmbCredentials
- Smb directory entity
- SMB directory entity with metadata
- Describes the permissions on POSIX system.
- Describes the permissions on POSIX system for a user class
- Describes options for opening file
- Smb connection options
- Smb stat type
- Smb statvfs type
Enums§
- Type of directory entity in the smb protocol
- Encryption level option
- Smb protocol error
- Share mode option
Type Aliases§
- Result returned by the Smb client