pub struct AsyncAuthorization<'a> { /* private fields */ }Available on crate feature
async only.Expand description
Borrowed async wrapper for AuthorizationRef rights requests.
Implementations§
Source§impl<'a> AsyncAuthorization<'a>
impl<'a> AsyncAuthorization<'a>
Sourcepub const fn new(authorization: &'a Authorization) -> Self
pub const fn new(authorization: &'a Authorization) -> Self
Create a borrowed async wrapper around an authorization handle.
Sourcepub fn copy_rights(
&self,
rights: &[&str],
options: AuthorizationOptions,
) -> Result<AuthorizationRightsFuture<'a>>
pub fn copy_rights( &self, rights: &[&str], options: AuthorizationOptions, ) -> Result<AuthorizationRightsFuture<'a>>
Start AuthorizationCopyRightsAsync and await the authorized-rights payload.
Trait Implementations§
Source§impl<'a> Clone for AsyncAuthorization<'a>
impl<'a> Clone for AsyncAuthorization<'a>
Source§fn clone(&self) -> AsyncAuthorization<'a>
fn clone(&self) -> AsyncAuthorization<'a>
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<'a> Debug for AsyncAuthorization<'a>
impl<'a> Debug for AsyncAuthorization<'a>
impl<'a> Copy for AsyncAuthorization<'a>
Auto Trait Implementations§
impl<'a> Freeze for AsyncAuthorization<'a>
impl<'a> RefUnwindSafe for AsyncAuthorization<'a>
impl<'a> !Send for AsyncAuthorization<'a>
impl<'a> !Sync for AsyncAuthorization<'a>
impl<'a> Unpin for AsyncAuthorization<'a>
impl<'a> UnsafeUnpin for AsyncAuthorization<'a>
impl<'a> UnwindSafe for AsyncAuthorization<'a>
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