Skip to main content

obj_config_t

Struct obj_config_t 

Source
#[repr(C)]
pub struct obj_config_t { pub sync_mode: obj_sync_mode_t, pub busy_timeout_ms: u64, pub skip_open_check: bool, }
Expand description

Flat C struct mirroring obj_engine::Config’s public knobs.

The struct is fixed-shape and freezes pre-1.0; the “size-field- at-front” extension trick is NOT in scope for v0. Future extensions require a new entry point with a new struct variant.

Field-by-field defaults mirror obj_engine::Config::default:

FieldDefault
sync_modeOBJ_SYNC_MODE_FULL
busy_timeout_ms5000
skip_open_checkfalse (0)

Fields§

§sync_mode: obj_sync_mode_t

fsync primitive used after every WAL commit.

§busy_timeout_ms: u64

Busy-lock timeout in milliseconds. 0 is treated as the engine’s default (5 s).

§skip_open_check: bool

Skip the open-time integrity check. Non-zero = skip.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V