pub struct AgentServiceClient<T> { /* private fields */ }Implementations§
Source§impl<T> AgentServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AgentServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> AgentServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
pub async fn connect( &mut self, request: impl IntoRequest<ConnectRequest>, ) -> Result<Response<ConnectResponse>, Status>
pub async fn context( &mut self, request: impl IntoRequest<ContextRequest>, ) -> Result<Response<ContextResponse>, Status>
pub async fn submit( &mut self, request: impl IntoRequest<SubmitRequest>, ) -> Result<Response<SubmitResponse>, Status>
Sourcepub async fn verify(
&mut self,
request: impl IntoRequest<VerifyRequest>,
) -> Result<Response<Streaming<VerifyStepResult>>, Status>
pub async fn verify( &mut self, request: impl IntoRequest<VerifyRequest>, ) -> Result<Response<Streaming<VerifyStepResult>>, Status>
Trigger verification pipeline on a changeset (server-streaming)
Sourcepub async fn merge(
&mut self,
request: impl IntoRequest<MergeRequest>,
) -> Result<Response<MergeResponse>, Status>
pub async fn merge( &mut self, request: impl IntoRequest<MergeRequest>, ) -> Result<Response<MergeResponse>, Status>
Merge an approved changeset into a Git commit
Sourcepub async fn watch(
&mut self,
request: impl IntoRequest<WatchRequest>,
) -> Result<Response<Streaming<WatchEvent>>, Status>
pub async fn watch( &mut self, request: impl IntoRequest<WatchRequest>, ) -> Result<Response<Streaming<WatchEvent>>, Status>
Watch for repo events from other agents (server-streaming)
Sourcepub async fn file_read(
&mut self,
request: impl IntoRequest<FileReadRequest>,
) -> Result<Response<FileReadResponse>, Status>
pub async fn file_read( &mut self, request: impl IntoRequest<FileReadRequest>, ) -> Result<Response<FileReadResponse>, Status>
File-level operations through the session workspace overlay
pub async fn file_write( &mut self, request: impl IntoRequest<FileWriteRequest>, ) -> Result<Response<FileWriteResponse>, Status>
pub async fn file_list( &mut self, request: impl IntoRequest<FileListRequest>, ) -> Result<Response<FileListResponse>, Status>
Sourcepub async fn pre_submit_check(
&mut self,
request: impl IntoRequest<PreSubmitCheckRequest>,
) -> Result<Response<PreSubmitCheckResponse>, Status>
pub async fn pre_submit_check( &mut self, request: impl IntoRequest<PreSubmitCheckRequest>, ) -> Result<Response<PreSubmitCheckResponse>, Status>
Dry-run conflict detection before SUBMIT
Sourcepub async fn get_session_status(
&mut self,
request: impl IntoRequest<SessionStatusRequest>,
) -> Result<Response<SessionStatusResponse>, Status>
pub async fn get_session_status( &mut self, request: impl IntoRequest<SessionStatusRequest>, ) -> Result<Response<SessionStatusResponse>, Status>
Get current session workspace state
Sourcepub async fn push(
&mut self,
request: impl IntoRequest<PushRequest>,
) -> Result<Response<PushResponse>, Status>
pub async fn push( &mut self, request: impl IntoRequest<PushRequest>, ) -> Result<Response<PushResponse>, Status>
Push merged changes to GitHub (branch or PR)
Sourcepub async fn approve(
&mut self,
request: impl IntoRequest<ApproveRequest>,
) -> Result<Response<ApproveResponse>, Status>
pub async fn approve( &mut self, request: impl IntoRequest<ApproveRequest>, ) -> Result<Response<ApproveResponse>, Status>
Approve a submitted changeset (platform-level state transition)
Trait Implementations§
Source§impl<T: Clone> Clone for AgentServiceClient<T>
impl<T: Clone> Clone for AgentServiceClient<T>
Source§fn clone(&self) -> AgentServiceClient<T>
fn clone(&self) -> AgentServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for AgentServiceClient<T>
impl<T> RefUnwindSafe for AgentServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for AgentServiceClient<T>where
T: Send,
impl<T> Sync for AgentServiceClient<T>where
T: Sync,
impl<T> Unpin for AgentServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for AgentServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AgentServiceClient<T>where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request