pub struct WriteOpts { /* private fields */ }Expand description
Builder for options and flags for opening a new cache file to write data into.
Implementations
Opens the file handle for writing, returning an Writer instance.
Opens the file handle for writing, without a key returning an Writer instance.
Opens the file handle for writing synchronously, returning a SyncWriter instance.
Opens the file handle for writing, without a key returning an SyncWriter instance.
Sets the expected size of the data to write. If there’s a date size
mismatch, put.commit() will return an error.
Sets arbitrary additional metadata to associate with the index entry.
Sets the specific time in unix milliseconds to associate with this entry. This is usually automatically set to the write time, but can be useful to change for tests and such.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WriteOpts
impl UnwindSafe for WriteOpts
Blanket Implementations
Mutably borrows from an owned value. Read more