pub struct ServiceConfig {
pub port: u16,
pub startup_timeout: Duration,
pub java_home: Option<PathBuf>,
pub java_opts: Vec<String>,
pub submodule_dir: Option<PathBuf>,
pub cache_dir: Option<PathBuf>,
}Fields§
§port: u16§startup_timeout: Duration§java_home: Option<PathBuf>§java_opts: Vec<String>§submodule_dir: Option<PathBuf>§cache_dir: Option<PathBuf>Implementations§
Source§impl ServiceConfig
impl ServiceConfig
pub fn new() -> Self
pub fn with_port(self, port: u16) -> Self
pub fn with_startup_timeout(self, timeout: Duration) -> Self
pub fn with_java_home(self, path: impl Into<PathBuf>) -> Self
pub fn with_java_opt(self, opt: impl Into<String>) -> Self
pub fn with_java_opts(self, opts: Vec<String>) -> Self
pub fn with_submodule_dir(self, path: impl Into<PathBuf>) -> Self
pub fn with_cache_dir(self, path: impl Into<PathBuf>) -> Self
Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServiceConfig
impl Debug for ServiceConfig
Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnsafeUnpin for ServiceConfig
impl UnwindSafe for ServiceConfig
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