pub struct ChainAuthProvider { /* private fields */ }Expand description
Provider that consults an ordered list of providers; the first Some wins,
for both transport and signing resolution.
Implementations§
Source§impl ChainAuthProvider
impl ChainAuthProvider
Sourcepub fn new(providers: Vec<Arc<dyn AuthProvider>>) -> Self
pub fn new(providers: Vec<Arc<dyn AuthProvider>>) -> Self
Create a chain from an ordered list of providers.
Sourcepub fn with(self, provider: Arc<dyn AuthProvider>) -> Self
pub fn with(self, provider: Arc<dyn AuthProvider>) -> Self
Append a provider to the end of the chain.
Trait Implementations§
Source§impl AuthProvider for ChainAuthProvider
impl AuthProvider for ChainAuthProvider
Source§fn transport_auth(
&self,
remote: Option<&str>,
) -> AppResult<Option<TransportAuth>>
fn transport_auth( &self, remote: Option<&str>, ) -> AppResult<Option<TransportAuth>>
Resolves transport auth for an optional remote name. Read more
Source§fn signing_config(&self) -> AppResult<Option<SigningConfig>>
fn signing_config(&self) -> AppResult<Option<SigningConfig>>
Resolves signing configuration for commit-producing operations. Read more
Source§impl Clone for ChainAuthProvider
impl Clone for ChainAuthProvider
Source§fn clone(&self) -> ChainAuthProvider
fn clone(&self) -> ChainAuthProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChainAuthProvider
impl Debug for ChainAuthProvider
Source§impl Default for ChainAuthProvider
impl Default for ChainAuthProvider
Source§fn default() -> ChainAuthProvider
fn default() -> ChainAuthProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ChainAuthProvider
impl !UnwindSafe for ChainAuthProvider
impl Freeze for ChainAuthProvider
impl Send for ChainAuthProvider
impl Sync for ChainAuthProvider
impl Unpin for ChainAuthProvider
impl UnsafeUnpin for ChainAuthProvider
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