pub struct SourceCredentials { /* private fields */ }Implementations§
Source§impl SourceCredentials
impl SourceCredentials
Sourcepub fn read(
kind: SourceAuthentication,
reader: impl Read,
) -> Result<Self, SourceCredentialError>
pub fn read( kind: SourceAuthentication, reader: impl Read, ) -> Result<Self, SourceCredentialError>
Call only after reserving acquisition capacity. Always bounded, including rejection.
pub fn new( kind: SourceAuthentication, bytes: Vec<u8>, ) -> Result<Self, SourceCredentialError>
pub fn kind(&self) -> SourceAuthentication
pub fn expose<R>(&self, use_material: impl FnOnce(&[u8]) -> R) -> R
pub fn password<R>( &self, use_material: impl FnOnce(&str, &str) -> R, ) -> Result<R, SourceCredentialError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SourceCredentials
impl RefUnwindSafe for SourceCredentials
impl Send for SourceCredentials
impl Sync for SourceCredentials
impl Unpin for SourceCredentials
impl UnsafeUnpin for SourceCredentials
impl UnwindSafe for SourceCredentials
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