pub struct MadeServiceServer<T> { /* private fields */ }Expand description
Implementation status (server side) at v0.1:
Every RPC is backed by a use case in made-app/src/usecases/
(or services/auto_dispatch.rs for ProcessTriggerEvent;
StatisticsPort::snapshot for GetStatus / GetMetrics;
AgentFactoryPort + AgentRegistryPort for RegisterAgent /
UnregisterAgent; DeliberationObserverPort bridged to an mpsc
channel for StreamDeliberation).
Caveats the project’s honesty principles require to surface:
RegisterAgent accepts kind == "noop" unconditionally. Provider-
backed kinds (vLLM, Anthropic, OpenAI, …) are accepted when the
binary was compiled with the matching feature and booted with the
required provider configuration.
StreamDeliberation emits one DeliberationUpdate per phase
transition (Proposing → Revising → Validating → Scoring →
Completed) and a final frame carrying the winner
DeliberationResult. It does not yet emit per-proposal /
per-critique / per-revision frames.
Implementations§
Source§impl<T> MadeServiceServer<T>
impl<T> MadeServiceServer<T>
pub fn new(inner: T) -> MadeServiceServer<T>
pub fn from_arc(inner: Arc<T>) -> MadeServiceServer<T>
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InterceptedService<MadeServiceServer<T>, F>where
F: Interceptor,
Sourcepub fn accept_compressed(
self,
encoding: CompressionEncoding,
) -> MadeServiceServer<T>
pub fn accept_compressed( self, encoding: CompressionEncoding, ) -> MadeServiceServer<T>
Enable decompressing requests with the given encoding.
Sourcepub fn send_compressed(
self,
encoding: CompressionEncoding,
) -> MadeServiceServer<T>
pub fn send_compressed( self, encoding: CompressionEncoding, ) -> MadeServiceServer<T>
Compress responses with the given encoding, if the client supports it.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> MadeServiceServer<T>
pub fn max_decoding_message_size(self, limit: usize) -> MadeServiceServer<T>
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> MadeServiceServer<T>
pub fn max_encoding_message_size(self, limit: usize) -> MadeServiceServer<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
Trait Implementations§
Source§impl<T> Clone for MadeServiceServer<T>
impl<T> Clone for MadeServiceServer<T>
Source§fn clone(&self) -> MadeServiceServer<T>
fn clone(&self) -> MadeServiceServer<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<T> Debug for MadeServiceServer<T>where
T: Debug,
impl<T> Debug for MadeServiceServer<T>where
T: Debug,
Source§impl<T> NamedService for MadeServiceServer<T>
impl<T> NamedService for MadeServiceServer<T>
Source§impl<T, B> Service<Request<B>> for MadeServiceServer<T>
impl<T, B> Service<Request<B>> for MadeServiceServer<T>
Source§type Future = Pin<Box<dyn Future<Output = Result<<MadeServiceServer<T> as Service<Request<B>>>::Response, <MadeServiceServer<T> as Service<Request<B>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<MadeServiceServer<T> as Service<Request<B>>>::Response, <MadeServiceServer<T> as Service<Request<B>>>::Error>> + Send>>
Auto Trait Implementations§
impl<T> Freeze for MadeServiceServer<T>
impl<T> RefUnwindSafe for MadeServiceServer<T>where
Arc<T>: RefUnwindSafe,
impl<T> Send for MadeServiceServer<T>
impl<T> Sync for MadeServiceServer<T>
impl<T> Unpin for MadeServiceServer<T>
impl<T> UnsafeUnpin for MadeServiceServer<T>where
Arc<T>: UnsafeUnpin,
impl<T> UnwindSafe for MadeServiceServer<T>where
Arc<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, ReqBody, ResBody> GrpcService<ReqBody> for T
impl<T, ReqBody, ResBody> GrpcService<ReqBody> for T
Source§type ResponseBody = ResBody
type ResponseBody = ResBody
Source§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
Ready when the service is able to process requests. Read moreSource§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Requestimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<S, R> ServiceExt<R> for Swhere
S: Service<R>,
impl<S, R> ServiceExt<R> for Swhere
S: Service<R>,
Source§fn into_make_service(self) -> IntoMakeService<S>
fn into_make_service(self) -> IntoMakeService<S>
MakeService, that is a Service whose
response is another service. Read moreSource§fn handle_error<F, T>(self, f: F) -> HandleError<Self, F, T>
fn handle_error<F, T>(self, f: F) -> HandleError<Self, F, T>
HandleError, that will handle errors
by converting them into responses. Read moreSource§impl<T, Request> ServiceExt<Request> for T
impl<T, Request> ServiceExt<Request> for T
Source§fn ready(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
fn ready(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
Source§fn ready_and(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
fn ready_and(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
please use the ServiceExt::ready method instead
Source§fn ready_oneshot(self) -> ReadyOneshot<Self, Request> ⓘwhere
Self: Sized,
fn ready_oneshot(self) -> ReadyOneshot<Self, Request> ⓘwhere
Self: Sized,
Source§fn oneshot(self, req: Request) -> Oneshot<Self, Request> ⓘwhere
Self: Sized,
fn oneshot(self, req: Request) -> Oneshot<Self, Request> ⓘwhere
Self: Sized,
Service, calling with the providing request once it is ready.Source§fn and_then<F>(self, f: F) -> AndThen<Self, F>
fn and_then<F>(self, f: F) -> AndThen<Self, F>
poll_ready method. Read moreSource§fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
poll_ready method. Read moreSource§fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
poll_ready method. Read moreSource§fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
Result<Self::Response, Self::Error>)
to a different value, regardless of whether the future succeeds or
fails. Read moreSource§fn map_request<F, NewRequest>(self, f: F) -> MapRequest<Self, F>
fn map_request<F, NewRequest>(self, f: F) -> MapRequest<Self, F>
Source§fn then<F, Response, Error, Fut>(self, f: F) -> Then<Self, F>
fn then<F, Response, Error, Fut>(self, f: F) -> Then<Self, F>
Source§fn map_future<F, Fut, Response, Error>(self, f: F) -> MapFuture<Self, F>
fn map_future<F, Fut, Response, Error>(self, f: F) -> MapFuture<Self, F>
Source§impl<T, Request> ServiceExt<Request> for T
impl<T, Request> ServiceExt<Request> for T
Source§fn ready(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
fn ready(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
Source§fn ready_oneshot(self) -> ReadyOneshot<Self, Request> ⓘwhere
Self: Sized,
fn ready_oneshot(self) -> ReadyOneshot<Self, Request> ⓘwhere
Self: Sized,
Source§fn oneshot(self, req: Request) -> Oneshot<Self, Request> ⓘwhere
Self: Sized,
fn oneshot(self, req: Request) -> Oneshot<Self, Request> ⓘwhere
Self: Sized,
Service, calling it with the provided request once it is ready.Source§fn and_then<F>(self, f: F) -> AndThen<Self, F>
fn and_then<F>(self, f: F) -> AndThen<Self, F>
poll_ready method. Read moreSource§fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
poll_ready method. Read moreSource§fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
poll_ready method. Read moreSource§fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
Result<Self::Response, Self::Error>)
to a different value, regardless of whether the future succeeds or
fails. Read more