pub struct PersistedDocumentsManager { /* private fields */ }Implementations§
Source§impl PersistedDocumentsManager
impl PersistedDocumentsManager
pub fn new( key: String, endpoint: String, accept_invalid_certs: bool, connect_timeout: Duration, request_timeout: Duration, retry_count: u32, cache_size: u64, ) -> Self
Sourcepub async fn resolve_document(
&self,
document_id: &str,
) -> Result<String, PersistedDocumentsError>
pub async fn resolve_document( &self, document_id: &str, ) -> Result<String, PersistedDocumentsError>
Resolves the document from the cache, or from the CDN
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PersistedDocumentsManager
impl !RefUnwindSafe for PersistedDocumentsManager
impl Send for PersistedDocumentsManager
impl Sync for PersistedDocumentsManager
impl Unpin for PersistedDocumentsManager
impl !UnwindSafe for PersistedDocumentsManager
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