pub struct MdpClient { /* private fields */ }Implementations§
Source§impl MdpClient
impl MdpClient
pub fn new( server_url: impl Into<String>, client: ClientInfo, ) -> Result<Self, MdpClientError>
pub fn with_transport( client: ClientInfo, transport: Box<dyn ClientTransport>, ) -> Self
pub fn set_auth(&self, auth: Option<AuthContext>)
pub fn describe(&self) -> ClientDescriptor
pub fn expose_endpoint<H, Fut>(
&self,
path: impl Into<String>,
method: HttpMethod,
handler: H,
options: EndpointOptions,
) -> Result<(), MdpClientError>where
H: Send + Sync + 'static + Fn(PathRequest, PathInvocationContext) -> Fut,
Fut: Future<Output = Result<Value, MdpClientError>> + Send + 'static,
pub fn expose_skill_markdown( &self, path: impl Into<String>, content: impl Into<String>, options: SkillOptions, ) -> Result<(), MdpClientError>
pub fn expose_prompt_markdown( &self, path: impl Into<String>, content: impl Into<String>, options: PromptOptions, ) -> Result<(), MdpClientError>
pub async fn connect(&self) -> Result<(), MdpClientError>
pub async fn register( &self, override_info: Option<ClientInfoOverride>, ) -> Result<(), MdpClientError>
pub async fn sync_catalog(&self) -> Result<(), MdpClientError>
pub async fn disconnect(&self) -> Result<(), MdpClientError>
Auto Trait Implementations§
impl Freeze for MdpClient
impl !RefUnwindSafe for MdpClient
impl Send for MdpClient
impl Sync for MdpClient
impl Unpin for MdpClient
impl UnsafeUnpin for MdpClient
impl !UnwindSafe for MdpClient
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