Struct vtubestudio::service::AuthenticationLayer
source · pub struct AuthenticationLayer { /* private fields */ }
Expand description
A Layer
that produces an Authentication
service.
Implementations§
source§impl AuthenticationLayer
impl AuthenticationLayer
sourcepub fn new(token_request: AuthenticationTokenRequest) -> Self
pub fn new(token_request: AuthenticationTokenRequest) -> Self
Creates a new AuthenticationLayer
with the given developer info.
sourcepub fn with_token(self, token: Option<String>) -> Self
pub fn with_token(self, token: Option<String>) -> Self
Provides the Authentication
service with an existing auth token.
On auth errors, the Authentication
service will attempt to use this token first before
trying to request a new one.
Trait Implementations§
source§impl Clone for AuthenticationLayer
impl Clone for AuthenticationLayer
source§fn clone(&self) -> AuthenticationLayer
fn clone(&self) -> AuthenticationLayer
Returns a copy of the value. Read more
1.0.0 · 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 AuthenticationLayer
impl Debug for AuthenticationLayer
source§impl<S> Layer<S> for AuthenticationLayer
impl<S> Layer<S> for AuthenticationLayer
Auto Trait Implementations§
impl Freeze for AuthenticationLayer
impl RefUnwindSafe for AuthenticationLayer
impl Send for AuthenticationLayer
impl Sync for AuthenticationLayer
impl Unpin for AuthenticationLayer
impl UnwindSafe for AuthenticationLayer
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