Struct iroh_docs::engine::DefaultAuthor
source · pub struct DefaultAuthor { /* private fields */ }
Available on crate feature
engine
only.Expand description
Persistent default author for a docs engine.
Implementations§
source§impl DefaultAuthor
impl DefaultAuthor
sourcepub async fn load(
storage: DefaultAuthorStorage,
docs_store: &SyncHandle
) -> Result<Self>
pub async fn load( storage: DefaultAuthorStorage, docs_store: &SyncHandle ) -> Result<Self>
Load the default author from storage.
If the storage is empty creates a new author and persists it.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DefaultAuthor
impl RefUnwindSafe for DefaultAuthor
impl Send for DefaultAuthor
impl Sync for DefaultAuthor
impl Unpin for DefaultAuthor
impl UnwindSafe for DefaultAuthor
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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