pub enum ServerTransport {
None,
Stdio,
Http {
host: String,
port: u16,
},
}Expand description
Server transport configuration.
Variants§
None
No transport configured.
Stdio
Standard I/O transport (stdin/stdout).
Http
Available on crate feature
http-server only.HTTP transport with optional SSE support.
Trait Implementations§
Source§impl Clone for ServerTransport
impl Clone for ServerTransport
Source§fn clone(&self) -> ServerTransport
fn clone(&self) -> ServerTransport
Returns a duplicate of the value. Read more
1.0.0 · 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 ServerTransport
impl Debug for ServerTransport
Auto Trait Implementations§
impl Freeze for ServerTransport
impl RefUnwindSafe for ServerTransport
impl Send for ServerTransport
impl Sync for ServerTransport
impl Unpin for ServerTransport
impl UnwindSafe for ServerTransport
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