pub struct MemoryPasAuth { /* private fields */ }Expand description
In-memory PAS auth port for tests. See module docs.
Implementations§
Source§impl MemoryPasAuth
impl MemoryPasAuth
pub fn new() -> Self
Sourcepub fn expect_refresh(
self,
rt: impl Into<String>,
returns: Result<TokenResponse, PasFailure>,
) -> Self
pub fn expect_refresh( self, rt: impl Into<String>, returns: Result<TokenResponse, PasFailure>, ) -> Self
Queue an expected refresh(rt) call returning returns.
Trait Implementations§
Source§impl Debug for MemoryPasAuth
impl Debug for MemoryPasAuth
Source§impl Default for MemoryPasAuth
impl Default for MemoryPasAuth
Source§fn default() -> MemoryPasAuth
fn default() -> MemoryPasAuth
Returns the “default value” for a type. Read more
Source§impl Drop for MemoryPasAuth
impl Drop for MemoryPasAuth
Source§impl PasAuthPort for MemoryPasAuth
impl PasAuthPort for MemoryPasAuth
Source§async fn refresh(&self, rt: &str) -> Result<TokenResponse, PasFailure>
async fn refresh(&self, rt: &str) -> Result<TokenResponse, PasFailure>
POST /oauth/token with grant_type=refresh_token (RFC 6749 §6).Auto Trait Implementations§
impl !Freeze for MemoryPasAuth
impl RefUnwindSafe for MemoryPasAuth
impl Send for MemoryPasAuth
impl Sync for MemoryPasAuth
impl Unpin for MemoryPasAuth
impl UnsafeUnpin for MemoryPasAuth
impl UnwindSafe for MemoryPasAuth
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