pub struct Server<T: Transport> { /* private fields */ }
Implementations§
Source§impl<T: Transport> Server<T>
impl<T: Transport> Server<T>
pub fn builder(transport: T) -> ServerBuilder<T>
pub fn get_client_capabilities(&self) -> Option<ClientCapabilities>
pub fn get_client_info(&self) -> Option<Implementation>
pub fn is_initialized(&self) -> bool
pub async fn listen(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Server<T>
impl<T> !RefUnwindSafe for Server<T>
impl<T> Send for Server<T>
impl<T> Sync for Server<T>
impl<T> Unpin for Server<T>
impl<T> !UnwindSafe for Server<T>
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