pub struct Auth<'a> { /* private fields */ }
Expand description
Provides functions relating to Ably API authentication.
Implementations
sourceimpl<'a> Auth<'a>
impl<'a> Auth<'a>
pub fn new(rest: &'a Rest) -> Self
sourcepub fn create_token_request(
&self,
params: &TokenParams,
options: &AuthOptions
) -> Result<TokenRequest>
pub fn create_token_request(
&self,
params: &TokenParams,
options: &AuthOptions
) -> Result<TokenRequest>
Start building a TokenRequest to be signed by a local API key.
pub async fn request_token(
&self,
params: &TokenParams,
options: &AuthOptions
) -> Result<TokenDetails>
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Auth<'a>
impl<'a> Send for Auth<'a>
impl<'a> Sync for Auth<'a>
impl<'a> Unpin for Auth<'a>
impl<'a> !UnwindSafe for Auth<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more