Struct coord::catalog::storage::Connection [−][src]
pub struct Connection {
inner: Connection,
experimental_mode: bool,
cluster_id: Uuid,
}
Fields
inner: Connection
experimental_mode: bool
cluster_id: Uuid
Implementations
fn set_or_get_experimental_mode(
sqlite: &mut Connection,
experimental_mode: Option<bool>
) -> Result<bool, Error>
fn set_or_get_experimental_mode(
sqlite: &mut Connection,
experimental_mode: Option<bool>
) -> Result<bool, Error>
Sets catalog’s experimental_mode
setting on initialization or gets
that value.
Note that using None
for experimental_mode
is appropriate when
reading the catalog outside the context of starting the server.
Errors
-
If server was initialized and
experimental_mode.unwrap()
does not match the initialized value.This means that experimental mode:
- Can only be enabled on initialization
- Cannot be disabled once enabled
Panics
- If server has not been initialized and
experimental_mode.is_none()
.
Sets catalog’s cluster_id
setting on initialization or gets that value.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more