Struct tsukuyomi::fs::OpenConfig
source · Expand description
A set of configuration used in NamedFile
.
Fields
chunk_size: Option<usize>
The size of chunked buffers.
If None
, it will be guessed based on the block size on the filesystem.
max_age: Option<Duration>
The maximal amount of time to refresh the resource.
If this field is set, the generated HTTP response will include a “Cache-Control” header that includes the parameter max-age.
Trait Implementations
sourceimpl Clone for OpenConfig
impl Clone for OpenConfig
sourcefn clone(&self) -> OpenConfig
fn clone(&self) -> OpenConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OpenConfig
impl Debug for OpenConfig
sourceimpl Default for OpenConfig
impl Default for OpenConfig
sourcefn default() -> OpenConfig
fn default() -> OpenConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for OpenConfig
impl Send for OpenConfig
impl Sync for OpenConfig
impl Unpin for OpenConfig
impl UnwindSafe for OpenConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more