pub struct ServerProtocolBuilder { /* private fields */ }
Implementations§
Source§impl ServerProtocolBuilder
impl ServerProtocolBuilder
pub fn new(name: String, version: String) -> Self
pub fn capabilities(self, capabilities: ServerCapabilities) -> Self
pub fn register_tool(self, tool: Tool, f: ToolHandlerFn) -> Self
pub fn get_client_capabilities(&self) -> Option<ClientCapabilities>
pub fn get_client_info(&self) -> Option<Implementation>
pub fn is_initialized(&self) -> bool
pub fn build(self) -> Protocol
Auto Trait Implementations§
impl Freeze for ServerProtocolBuilder
impl !RefUnwindSafe for ServerProtocolBuilder
impl Send for ServerProtocolBuilder
impl Sync for ServerProtocolBuilder
impl Unpin for ServerProtocolBuilder
impl !UnwindSafe for ServerProtocolBuilder
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