pub struct Connection { /* private fields */ }
Expand description
A wrapper over a connection to a Ceph cluster.
Implementations§
Source§impl Connection
impl Connection
Sourcepub fn stat(&mut self) -> Result<ClusterStat>
pub fn stat(&mut self) -> Result<ClusterStat>
Fetch the stats of the entire cluster, using rados_cluster_stat
.
Sourcepub fn get_pool_context(&mut self, pool_name: &str) -> Result<Context>
pub fn get_pool_context(&mut self, pool_name: &str) -> Result<Context>
Fetch the rados_ioctx_t
for the relevant pool, using rados_ioctx_create
.
Sourcepub fn get_pool_context_from_id(&mut self, pool_id: u64) -> Result<Context>
pub fn get_pool_context_from_id(&mut self, pool_id: u64) -> Result<Context>
Fetch the rados_ioctx_t
for the relevant pool, using rados_ioctx_create2
.
Trait Implementations§
impl Send for Connection
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl !Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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