[−][src]Struct tokio_hglib::Client
Command-server client holding active connection.
Implementations
impl<C> Client<C>
[src]
pub fn server_spec(&self) -> &ServerSpec
[src]
Server capabilities, encoding, etc.
pub fn borrow_protocol_mut(&mut self) -> &mut Protocol<C>
[src]
Mutably borrows the underlying protocol.
This is a low-level interface to implement new command handler.
impl<C> Client<C> where
C: Connection,
[src]
C: Connection,
pub async fn run_command(
&mut self,
handler: &mut impl UiHandler,
args: impl IntoIterator<Item = impl AsRef<[u8]>>
) -> Result<i32>
[src]
&mut self,
handler: &mut impl UiHandler,
args: impl IntoIterator<Item = impl AsRef<[u8]>>
) -> Result<i32>
impl Client<PipeConnection>
[src]
pub async fn spawn_at(dir: impl AsRef<Path>) -> Result<Self>
[src]
Spawns a server process at the specified directory with the default configuration.
pub async fn spawn_with(command: &mut Command) -> Result<Self>
[src]
Spawns a server process by the given process builder.
Trait Implementations
Auto Trait Implementations
impl<C> RefUnwindSafe for Client<C> where
C: RefUnwindSafe,
[src]
C: RefUnwindSafe,
impl<C> Send for Client<C> where
C: Send,
[src]
C: Send,
impl<C> Sync for Client<C> where
C: Sync,
[src]
C: Sync,
impl<C> Unpin for Client<C> where
C: Unpin,
[src]
C: Unpin,
impl<C> UnwindSafe for Client<C> where
C: UnwindSafe,
[src]
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,