pub enum StateRef {
Sqlite(PathBuf),
Postgres(String),
}Expand description
Serialisable reference that identifies a state database without holding a
live connection. Passed to parallel chunk workers so they can open their
own connection for atomic claim_next_chunk_task operations.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateRef
impl RefUnwindSafe for StateRef
impl Send for StateRef
impl Sync for StateRef
impl Unpin for StateRef
impl UnsafeUnpin for StateRef
impl UnwindSafe for StateRef
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