pub enum Transport {
Stdio(Box<StdioTransport>),
Http(HttpTransport),
}Expand description
A connection to a server.
Variants§
Stdio(Box<StdioTransport>)
A server process on stdin and stdout.
Http(HttpTransport)
A streamable HTTP endpoint.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Transport
impl !UnwindSafe for Transport
impl Forget for Transport
impl Freeze for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin 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