pub struct Anonymous<A> { /* private fields */ }Expand description
Anonymous access auth provider.
The Anonymous grants a fixed set of permissions to anonymous users, i.e. those not
supplying any credentials at all. For others it defers to the wrapped AuthProvider A.
Implementations§
Trait Implementations§
Source§impl<A> AuthProvider for Anonymous<A>where
A: AuthProvider,
impl<A> AuthProvider for Anonymous<A>where
A: AuthProvider,
Source§fn check_credentials<'life0, 'life1, 'async_trait>(
&'life0 self,
unverified: &'life1 Unverified,
) -> Pin<Box<dyn Future<Output = Option<ValidCredentials>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_credentials<'life0, 'life1, 'async_trait>(
&'life0 self,
unverified: &'life1 Unverified,
) -> Pin<Box<dyn Future<Output = Option<ValidCredentials>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Checks whether the supplied unverified credentials are valid. Read more
Source§fn image_permissions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
creds: &'life1 ValidCredentials,
image: &'life2 ImageLocation,
) -> Pin<Box<dyn Future<Output = Permissions> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn image_permissions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
creds: &'life1 ValidCredentials,
image: &'life2 ImageLocation,
) -> Pin<Box<dyn Future<Output = Permissions> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Determine permissions for given credentials at image location. Read more
Source§fn blob_permissions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
creds: &'life1 ValidCredentials,
blob: &'life2 ImageDigest,
) -> Pin<Box<dyn Future<Output = Permissions> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn blob_permissions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
creds: &'life1 ValidCredentials,
blob: &'life2 ImageDigest,
) -> Pin<Box<dyn Future<Output = Permissions> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Determine permissions for given credentials to a specific blob. Read more
Auto Trait Implementations§
impl<A> Freeze for Anonymous<A>where
A: Freeze,
impl<A> RefUnwindSafe for Anonymous<A>where
A: RefUnwindSafe,
impl<A> Send for Anonymous<A>where
A: Send,
impl<A> Sync for Anonymous<A>where
A: Sync,
impl<A> Unpin for Anonymous<A>where
A: Unpin,
impl<A> UnwindSafe for Anonymous<A>where
A: UnwindSafe,
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