pub struct Client<T: Transport> { /* private fields */ }
Implementations§
Source§impl<T: Transport> Client<T>
impl<T: Transport> Client<T>
pub fn builder(transport: T) -> ClientBuilder<T>
pub async fn initialize( &self, client_info: Implementation, ) -> Result<InitializeResponse>
pub async fn request( &self, method: &str, params: Option<Value>, options: RequestOptions, ) -> Result<Value>
pub async fn start(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Client<T>
impl<T> !RefUnwindSafe for Client<T>
impl<T> Send for Client<T>
impl<T> Sync for Client<T>
impl<T> Unpin for Client<T>
impl<T> !UnwindSafe for Client<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