pub struct Server;
Expand description
The main MCP server type.
Provides static methods for creating and starting MCP servers.
Implementations§
Source§impl Server
impl Server
Sourcepub fn builder(
name: String,
version: String,
protocol_version: ProtocolVersion,
) -> ServerProtocolBuilder
pub fn builder( name: String, version: String, protocol_version: ProtocolVersion, ) -> ServerProtocolBuilder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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