Crate pavao

source ·
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);
Run

Further examples can be found under the examples/ directory in the Github repository

Structs§

Enums§

Type Aliases§