pub struct Client { /* private fields */ }Expand description
Owner-private runtime client; no solver process or fallback is ever started here.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(socket: impl Into<PathBuf>) -> Self
pub fn new(socket: impl Into<PathBuf>) -> Self
Construct a side-effect-free client for the independently versioned endpoint.
Sourcepub fn capabilities(&self) -> Result<Capabilities>
pub fn capabilities(&self) -> Result<Capabilities>
Negotiate implementation and actual installation readiness without checking a theorem.
§Errors
Reports absent, incompatible, malformed or failed services explicitly.
Sourcepub fn cancel(&self, id: &str) -> Result<bool>
pub fn cancel(&self, id: &str) -> Result<bool>
Cancel an exact active transport identity on a separate control connection.
§Errors
Returns connection or protocol failures instead of claiming cancellation.
Sourcepub fn execute(&self, request: &RuntimeRequest) -> Result<RuntimeResponse>
pub fn execute(&self, request: &RuntimeRequest) -> Result<RuntimeResponse>
Execute through the service with no local solver fallback.
§Errors
Returns admission, connection and protocol failures explicitly.
Sourcepub fn execute_cancellable(
&self,
request: &RuntimeRequest,
cancelled: impl Fn() -> bool,
) -> Result<RuntimeResponse>
pub fn execute_cancellable( &self, request: &RuntimeRequest, cancelled: impl Fn() -> bool, ) -> Result<RuntimeResponse>
Execute while polling caller cancellation; all started I/O workers are joined.
§Errors
Returns admission, cancellation transport or service failures explicitly.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Client
impl Freeze for Client
impl Move for Client
impl RefUnwindSafe for Client
impl Send for Clientwhere
RawVecInner: Send,
impl Sync for Clientwhere
RawVecInner: Sync,
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Clientwhere
RawVecInner: 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