pub struct Client<C> { /* private fields */ }
Expand description
Command-server client holding active connection.
Implementations§
Source§impl<C> Client<C>where
C: Connection,
impl<C> Client<C>where
C: Connection,
Sourcepub async fn run_command_os(
&mut self,
handler: &mut impl UiHandler,
args: impl IntoIterator<Item = impl AsRef<OsStr>>,
) -> Result<i32>
pub async fn run_command_os( &mut self, handler: &mut impl UiHandler, args: impl IntoIterator<Item = impl AsRef<OsStr>>, ) -> Result<i32>
Runs the Mercurial command specified in platform string.
Source§impl<C> Client<C>
impl<C> Client<C>
Sourcepub fn server_spec(&self) -> &ServerSpec
pub fn server_spec(&self) -> &ServerSpec
Server capabilities, encoding, etc.
Sourcepub fn borrow_protocol_mut(&mut self) -> &mut Protocol<C>
pub fn borrow_protocol_mut(&mut self) -> &mut Protocol<C>
Mutably borrows the underlying protocol.
This is a low-level interface to implement new command handler.
Source§impl<C> Client<C>where
C: Connection,
impl<C> Client<C>where
C: Connection,
Sourcepub async fn run_command(
&mut self,
handler: &mut impl UiHandler,
args: impl IntoIterator<Item = impl AsRef<[u8]>>,
) -> Result<i32>
pub async fn run_command( &mut self, handler: &mut impl UiHandler, args: impl IntoIterator<Item = impl AsRef<[u8]>>, ) -> Result<i32>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Client<C>where
C: Freeze,
impl<C> RefUnwindSafe for Client<C>where
C: RefUnwindSafe,
impl<C> Send for Client<C>where
C: Send,
impl<C> Sync for Client<C>where
C: Sync,
impl<C> Unpin for Client<C>where
C: Unpin,
impl<C> UnwindSafe for Client<C>where
C: UnwindSafe,
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