Struct rad::rados::ConnectionBuilder
[−]
[src]
pub struct ConnectionBuilder { /* fields omitted */ }
A wrapper around a rados_t
providing methods for configuring the connection before finalizing
it.
Methods
impl ConnectionBuilder
[src]
fn new() -> Result<ConnectionBuilder>
[src]
Start building a new connection. By default the client to connect as is client.admin
.
fn with_user(user: &str) -> Result<ConnectionBuilder>
[src]
Start building a new connection with a specified user.
fn read_conf_file(self, path: &Path) -> Result<ConnectionBuilder>
[src]
Read a configuration file from a given path.
fn conf_set(self, option: &str, value: &str) -> Result<ConnectionBuilder>
[src]
Set an individual configuration option. Useful options include keyring
if you are trying
to set up Ceph without storing everything inside /etc/ceph
.
fn connect(self) -> Result<Connection>
[src]
Finish building the connection configuration and connect to the cluster.