pub enum DefaultAuthorStorage {
Mem,
Persistent(PathBuf),
}
Expand description
Where to persist the default author.
If set to Mem
, a new author will be created in the docs store before spawning the sync
engine. Changing the default author will not be persisted.
If set to Persistent
, the default author will be loaded from and persisted to the specified
path (as hex encoded string of the author’s public key).
Variants§
Implementations§
Source§impl DefaultAuthorStorage
impl DefaultAuthorStorage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DefaultAuthorStorage
impl RefUnwindSafe for DefaultAuthorStorage
impl Send for DefaultAuthorStorage
impl Sync for DefaultAuthorStorage
impl Unpin for DefaultAuthorStorage
impl UnwindSafe for DefaultAuthorStorage
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