pub struct Options {
pub device_id: String,
pub clock: Arc<dyn Clock>,
}Expand description
Open-time configuration for Grit.
Fields§
§device_id: StringStable identifier for this device/installation; stamped on every op and used as the HLC tie-breaker.
clock: Arc<dyn Clock>Time source. Defaults to SystemClock; tests inject ManualClock.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl !UnwindSafe for Options
impl Freeze for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
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