pub struct DapServer {
pub config: DapConfig,
/* private fields */
}Expand description
DAP server
Supports two operating modes:
- Native (default): Uses the built-in
DebugAdapterwithperl -d - Bridge: Proxies DAP messages to Perl::LanguageServer via
BridgeAdapter
Fields§
§config: DapConfigServer configuration
Implementations§
Source§impl DapServer
impl DapServer
Sourcepub fn run(&mut self) -> Result<()>
pub fn run(&mut self) -> Result<()>
Run the DAP server
Dispatches to the appropriate transport based on the configured DapMode:
DapMode::Native: Starts the stdio transport loop viaDebugAdapter::runDapMode::Bridge: Spawns Perl::LanguageServer and proxies DAP messages viaBridgeAdapterusing a tokio async runtime
Auto Trait Implementations§
impl Freeze for DapServer
impl RefUnwindSafe for DapServer
impl Send for DapServer
impl Sync for DapServer
impl Unpin for DapServer
impl UnsafeUnpin for DapServer
impl UnwindSafe for DapServer
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