pub struct ConnectionOptions {
pub cwd: PathBuf,
pub host: Option<String>,
pub port: Option<u16>,
pub app_id: Option<String>,
pub pid_file: Option<PathBuf>,
}Expand description
Discovery inputs shared by CLI and standalone MCP server.
Fields§
§cwd: PathBuf§host: Option<String>§port: Option<u16>§app_id: Option<String>§pid_file: Option<PathBuf>Implementations§
Source§impl ConnectionOptions
impl ConnectionOptions
pub fn from_current_dir() -> Self
Trait Implementations§
Source§impl Clone for ConnectionOptions
impl Clone for ConnectionOptions
Source§fn clone(&self) -> ConnectionOptions
fn clone(&self) -> ConnectionOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnsafeUnpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
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