pub struct Config {
pub serve_filepath: &'static Path,
pub bundled_files: &'static Files,
pub channel_size: usize,
pub cookie_name: String,
}
Expand description
Configuration settings for BuiService
.
Defaults can be loaded using the function get_default_config()
generated by the bui_backend_codegen
crate.
Fields§
§serve_filepath: &'static Path
Location of the files to be served.
bundled_files: &'static Files
Available on crate feature
bundle_files
only.The bundled files.
channel_size: usize
The number of messages in the event stream channel before blocking.
The name of the cookie stored in the clients browser.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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