pub enum TransportType {
Stdio {
server_path: Option<String>,
server_args: Option<Vec<String>>,
},
Http {
base_url: String,
auth_token: Option<String>,
},
}
Expand description
Transport type
Variants§
Trait Implementations§
Source§impl Clone for TransportType
impl Clone for TransportType
Source§fn clone(&self) -> TransportType
fn clone(&self) -> TransportType
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 moreAuto Trait Implementations§
impl Freeze for TransportType
impl RefUnwindSafe for TransportType
impl Send for TransportType
impl Sync for TransportType
impl Unpin for TransportType
impl UnwindSafe for TransportType
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