pub enum A2aEndpoint {
Https(String),
}Expand description
The client transport an A2aPeerSpec endpoint resolves to. Parsed once
(scheme-validated at startup), then the A2A client dials it. vsock:CID:PORT
requires both forms of a cid+port (no wildcard — a client dials a concrete
peer, unlike the --serve-mcp listen form which may wildcard).
Variants§
Https(String)
Dial an A2A peer over HTTP(S):
https://host[:port][/path] (or loopback http:// for dev/tests). The
raw URL, parsed by the A2A client’s HTTP dialer. A co-located peer may
instead be dialled by unix:///path (same URL string, socket dial).
Implementations§
Source§impl A2aEndpoint
impl A2aEndpoint
Sourcepub fn parse(spec: &str) -> Result<A2aEndpoint, ConfigError>
pub fn parse(spec: &str) -> Result<A2aEndpoint, ConfigError>
Parse an --a2a-peer endpoint. HTTPS-only: an https:// peer URL, or
a loopback http:// for dev/tests. Returns a
ConfigError::Usage (exit 2, before any side effect) on any problem.
Trait Implementations§
Source§impl Clone for A2aEndpoint
impl Clone for A2aEndpoint
Source§fn clone(&self) -> A2aEndpoint
fn clone(&self) -> A2aEndpoint
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 moreSource§impl Debug for A2aEndpoint
impl Debug for A2aEndpoint
impl Eq for A2aEndpoint
Source§impl PartialEq for A2aEndpoint
impl PartialEq for A2aEndpoint
impl StructuralPartialEq for A2aEndpoint
Auto Trait Implementations§
impl Freeze for A2aEndpoint
impl RefUnwindSafe for A2aEndpoint
impl Send for A2aEndpoint
impl Sync for A2aEndpoint
impl Unpin for A2aEndpoint
impl UnsafeUnpin for A2aEndpoint
impl UnwindSafe for A2aEndpoint
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