Struct aliri_tokens::sources::file::FileTokenSource [−][src]
pub struct FileTokenSource { /* fields omitted */ }
Expand description
A token source that uses a local file
Implementations
impl FileTokenSource
[src]
impl FileTokenSource
[src]Trait Implementations
impl AsyncTokenCache for FileTokenSource
[src]
impl AsyncTokenCache for FileTokenSource
[src]fn request_token<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<TokenWithLifetime, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn request_token<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<TokenWithLifetime, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Requests a token from the cache
fn persist_token<'life0, 'life1, 'async_trait>(
&'life0 mut self,
token: &'life1 TokenWithLifetime
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
fn persist_token<'life0, 'life1, 'async_trait>(
&'life0 mut self,
token: &'life1 TokenWithLifetime
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Persists a token into the cache
impl AsyncTokenSource for FileTokenSource
[src]
impl AsyncTokenSource for FileTokenSource
[src]fn request_token<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<TokenWithLifetime, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn request_token<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<TokenWithLifetime, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Requests a token from an asynchronous source
Auto Trait Implementations
impl RefUnwindSafe for FileTokenSource
impl Send for FileTokenSource
impl Sync for FileTokenSource
impl Unpin for FileTokenSource
impl UnwindSafe for FileTokenSource
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,