client: getters for the inner client
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
9599cb6fd6
commit
ba6a628601
@ -73,6 +73,16 @@ impl<C, E> Client<C, E>
|
||||
where
|
||||
E: Environment,
|
||||
{
|
||||
/// Get the underlying client object.
|
||||
pub fn inner(&self) -> &C {
|
||||
&self.client
|
||||
}
|
||||
|
||||
/// Get a mutable reference to the underlying client object.
|
||||
pub fn inner_mut(&mut self) -> &mut C {
|
||||
&mut self.client
|
||||
}
|
||||
|
||||
/// Get a reference to the current authentication information.
|
||||
pub fn authentication(&self) -> Option<Arc<AuthenticationKind>> {
|
||||
self.auth.lock().unwrap().clone()
|
||||
|
Loading…
x
Reference in New Issue
Block a user