pub struct UrlBackendConnector {
pub url: String,
pub headers: Option<HashMap<String, String>>,
pub connect_timeout: Duration,
}Expand description
Connect to a remote Streamable HTTP MCP URL (new connection each call).
Fields§
§url: String§headers: Option<HashMap<String, String>>§connect_timeout: DurationImplementations§
Trait Implementations§
Source§impl BackendConnector for UrlBackendConnector
impl BackendConnector for UrlBackendConnector
Connect using a shared fan-out registry (stdio / shared isolation). Read more
Source§fn connect_session<'life0, 'async_trait>(
&'life0 self,
slot: UpstreamPeerSlot,
) -> Pin<Box<dyn Future<Output = Result<BackendRunningService>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect_session<'life0, 'async_trait>(
&'life0 self,
slot: UpstreamPeerSlot,
) -> Pin<Box<dyn Future<Output = Result<BackendRunningService>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connect for one session with a 1:1 notify slot (URL / per-session).
Source§fn connect_timeout(&self) -> Duration
fn connect_timeout(&self) -> Duration
Timeout used when awaiting lazy per-session connect.
Source§impl Clone for UrlBackendConnector
impl Clone for UrlBackendConnector
Source§fn clone(&self) -> UrlBackendConnector
fn clone(&self) -> UrlBackendConnector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UrlBackendConnector
impl RefUnwindSafe for UrlBackendConnector
impl Send for UrlBackendConnector
impl Sync for UrlBackendConnector
impl Unpin for UrlBackendConnector
impl UnsafeUnpin for UrlBackendConnector
impl UnwindSafe for UrlBackendConnector
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