pub struct ReplicaConfig {
pub app_name: String,
pub root: PathBuf,
pub device_id: GrainId,
pub max_file_size: u64,
pub store_path: PathBuf,
pub staging_dir: PathBuf,
}Expand description
How a replica is set up.
Fields§
§app_name: String§root: PathBuf§device_id: GrainIdRecorded as Entry::author on local writes.
max_file_size: u64§store_path: PathBuf§staging_dir: PathBufImplementations§
Trait Implementations§
Source§impl Clone for ReplicaConfig
impl Clone for ReplicaConfig
Source§fn clone(&self) -> ReplicaConfig
fn clone(&self) -> ReplicaConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReplicaConfig
impl RefUnwindSafe for ReplicaConfig
impl Send for ReplicaConfig
impl Sync for ReplicaConfig
impl Unpin for ReplicaConfig
impl UnsafeUnpin for ReplicaConfig
impl UnwindSafe for ReplicaConfig
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