#[non_exhaustive]pub enum AppServerTransport {
Stdio,
UnixSocket {
socket: PathBuf,
},
}Expand description
How an AppServer reaches the server, and so what it owns.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stdio
app-server --listen stdio://: the client started the server and owns
it.
UnixSocket
An existing server reached by WebSocket over an explicitly selected Unix socket. The client owns only its connection.
Implementations§
Source§impl AppServerTransport
impl AppServerTransport
Sourcepub fn owns_server(&self) -> bool
pub fn owns_server(&self) -> bool
Whether this client owns the server process. Attached connections never signal the shared server.
Trait Implementations§
Source§impl Clone for AppServerTransport
impl Clone for AppServerTransport
Source§impl Debug for AppServerTransport
impl Debug for AppServerTransport
impl Eq for AppServerTransport
Source§impl PartialEq for AppServerTransport
impl PartialEq for AppServerTransport
impl StructuralPartialEq for AppServerTransport
Auto Trait Implementations§
impl Forget for AppServerTransport
impl Freeze for AppServerTransport
impl RefUnwindSafe for AppServerTransport
impl Send for AppServerTransport
impl Sync for AppServerTransport
impl Unpin for AppServerTransport
impl UnsafeUnpin for AppServerTransport
impl UnwindSafe for AppServerTransport
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