Struct spacetimedb::db::message_log::OpenOptions
source · pub struct OpenOptions { /* private fields */ }Expand description
Options for opening a MessageLog, similar to fs::OpenOptions.
Implementations§
source§impl OpenOptions
impl OpenOptions
sourcepub fn max_segment_size(&mut self, size: u64) -> &mut Self
pub fn max_segment_size(&mut self, size: u64) -> &mut Self
Set the maximum size in bytes of a single log segment.
Default: 1GiB
sourcepub fn open(&self, path: impl AsRef<Path>) -> Result<MessageLog, OpenError>
pub fn open(&self, path: impl AsRef<Path>) -> Result<MessageLog, OpenError>
Open the MessageLog at path with the options in self.
Trait Implementations§
source§impl Clone for OpenOptions
impl Clone for OpenOptions
source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for OpenOptions
impl Debug for OpenOptions
source§impl Default for OpenOptions
impl Default for OpenOptions
impl Copy for OpenOptions
Auto Trait Implementations§
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
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