pub struct LighthouseConfigBuilder {
config: LighthouseConfig,
}
Expand description
Builder for creating lighthouse configurations easily
Fields§
§config: LighthouseConfig
Implementations§
Source§impl LighthouseConfigBuilder
impl LighthouseConfigBuilder
pub fn new() -> Self
pub fn evaluation_interval(self, seconds: u64) -> Self
pub fn add_resource_config( self, resource_type: &str, config: ResourceConfig, ) -> Self
pub fn global_setting(self, key: &str, value: &str) -> Self
pub fn enable_logging(self, enabled: bool) -> Self
pub fn build(self) -> LighthouseConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LighthouseConfigBuilder
impl RefUnwindSafe for LighthouseConfigBuilder
impl Send for LighthouseConfigBuilder
impl Sync for LighthouseConfigBuilder
impl Unpin for LighthouseConfigBuilder
impl UnwindSafe for LighthouseConfigBuilder
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