pub enum Transport {
Tcp {
host: String,
port: u16,
tls: bool,
},
}Expand description
Per-endpoint dial transport, owned by super::endpoints. Intelligence is
HTTPS-only, so there is exactly one TCP shape: tls: true in production.
tls: false exists solely for the loopback dev/test carve-out that backs the
built-in mock LLM, and [resolve] rejects it for any non-loopback host —
the variant cannot be reached with a real remote address.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
impl UnwindSafe for Transport
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