pub enum ServerTransport {
Stdio {
command: String,
args: Vec<String>,
env: IndexMap<String, String>,
cwd: Option<String>,
},
Http {
url: String,
headers: IndexMap<String, String>,
auth_provider: Option<String>,
oauth: Option<OAuthConfig>,
},
}Expand description
How to reach a server.
Variants§
Implementations§
Source§impl ServerTransport
impl ServerTransport
Sourcepub fn uses_oauth(&self) -> bool
pub fn uses_oauth(&self) -> bool
Whether the server would sign in with OAuth: HTTP without an
Authorization header or provider auth.
Trait Implementations§
Source§impl Clone for ServerTransport
impl Clone for ServerTransport
Source§impl Debug for ServerTransport
impl Debug for ServerTransport
Source§impl PartialEq for ServerTransport
impl PartialEq for ServerTransport
impl StructuralPartialEq for ServerTransport
Auto Trait Implementations§
impl Forget for ServerTransport
impl Freeze for ServerTransport
impl RefUnwindSafe for ServerTransport
impl Send for ServerTransport
impl Sync for ServerTransport
impl Unpin for ServerTransport
impl UnsafeUnpin 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