[−][src]Struct bindle::cache::dumb::DumbCache
A cache that doesn't ever expire entries. It fills the cache by requesting bindles from a bindle server using the configured client and stores them in the given storage implementation
Implementations
impl<S: Storage + Clone> DumbCache<S>
[src]
Trait Implementations
impl<S: Storage + Send + Sync + Clone> Cache for DumbCache<S>
[src]
impl<S: Clone + Storage> Clone for DumbCache<S>
[src]
impl<S: Storage + Send + Sync + Clone> Storage for DumbCache<S>
[src]
pub fn create_invoice<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 Invoice
) -> Pin<Box<dyn Future<Output = Result<Vec<Label>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
__arg1: &'life1 Invoice
) -> Pin<Box<dyn Future<Output = Result<Vec<Label>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn get_yanked_invoice<'life0, 'async_trait, I>(
&'life0 self,
id: I
) -> Pin<Box<dyn Future<Output = Result<Invoice>> + Send + 'async_trait>> where
I: TryInto<Id> + Send,
I::Error: Into<StorageError>,
I: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: I
) -> Pin<Box<dyn Future<Output = Result<Invoice>> + Send + 'async_trait>> where
I: TryInto<Id> + Send,
I::Error: Into<StorageError>,
I: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn yank_invoice<'life0, 'async_trait, I>(
&'life0 self,
id: I
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
I: TryInto<Id> + Send,
I::Error: Into<StorageError>,
I: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: I
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
I: TryInto<Id> + Send,
I::Error: Into<StorageError>,
I: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn create_parcel<'life0, 'life1, 'life2, 'async_trait, R: AsyncRead + Unpin + Send + Sync>(
&'life0 self,
__arg1: &'life1 Label,
__arg2: &'life2 mut R
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
__arg1: &'life1 Label,
__arg2: &'life2 mut R
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
pub fn get_parcel<'life0, 'life1, 'async_trait>(
&'life0 self,
parcel_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Unpin + Send + Sync>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
parcel_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Unpin + Send + Sync>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn get_label<'life0, 'life1, 'async_trait>(
&'life0 self,
__arg1: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Label>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
__arg1: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Label>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]pub fn get_invoice<'life0, 'async_trait, I>(
&'life0 self,
id: I
) -> Pin<Box<dyn Future<Output = Result<Invoice>> + Send + 'async_trait>> where
I: TryInto<Id> + Send,
I::Error: Into<StorageError>,
I: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'life0 self,
id: I
) -> Pin<Box<dyn Future<Output = Result<Invoice>> + Send + 'async_trait>> where
I: TryInto<Id> + Send,
I::Error: Into<StorageError>,
I: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
Auto Trait Implementations
impl<S> !RefUnwindSafe for DumbCache<S>
[src]
impl<S> Send for DumbCache<S> where
S: Send,
[src]
S: Send,
impl<S> Sync for DumbCache<S> where
S: Sync,
[src]
S: Sync,
impl<S> Unpin for DumbCache<S> where
S: Unpin,
[src]
S: Unpin,
impl<S> !UnwindSafe for DumbCache<S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,