pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn new(path: PathBuf) -> Self
pub async fn from_file<P: AsRef<Path>>(path: P) -> Result<Config, Error>
pub async fn write(&self) -> Result<(), Error>
pub fn default_server(&self) -> Option<&Server>
pub fn default_server_mut(&mut self) -> Option<&mut Server>
pub fn to_boardswarm_builder(&self) -> Option<BoardswarmBuilder>
pub fn find_server(&self, name: &str) -> Option<&Server>
pub fn find_server_mut(&mut self, name: &str) -> Option<&mut Server>
pub fn add_server(&mut self, server: Server)
pub fn set_default(&mut self, name: &str)
pub fn path(&self) -> &Path
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request