pub struct AuthBaton { /* private fields */ }Expand description
Authentication baton for managing authentication providers and credentials.
Implementations§
Source§impl AuthBaton
impl AuthBaton
Sourcepub fn as_mut_ptr(&mut self) -> *mut svn_auth_baton_t
pub fn as_mut_ptr(&mut self) -> *mut svn_auth_baton_t
Returns a mutable pointer to the auth baton.
Sourcepub fn set(&mut self, setting: AuthSetting<'_>) -> Result<(), Error<'static>>
pub fn set(&mut self, setting: AuthSetting<'_>) -> Result<(), Error<'static>>
Sets an authentication setting.
Sourcepub fn credentials<C: Credentials>(
&mut self,
realm: &str,
) -> Result<IterState<C>, Error<'_>>
pub fn credentials<C: Credentials>( &mut self, realm: &str, ) -> Result<IterState<C>, Error<'_>>
Gets credentials for the specified realm.
Sourcepub fn forget_credentials<C: Credentials>(
&mut self,
cred_kind: Option<&str>,
realm: Option<&str>,
) -> Result<(), Error<'static>>
pub fn forget_credentials<C: Credentials>( &mut self, cred_kind: Option<&str>, realm: Option<&str>, ) -> Result<(), Error<'static>>
Forgets stored credentials.
Sourcepub unsafe fn get_parameter(&mut self, name: &str) -> *const c_void
pub unsafe fn get_parameter(&mut self, name: &str) -> *const c_void
Get a parameter from the auth baton.
§Safety
The caller must ensure that the value is valid for the lifetime of the auth baton.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthBaton
impl RefUnwindSafe for AuthBaton
impl !Sync for AuthBaton
impl Unpin for AuthBaton
impl UnsafeUnpin for AuthBaton
impl UnwindSafe for AuthBaton
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