pub struct OpsRouterBuilder { /* private fields */ }Expand description
Builds the /_ops monitoring router.
Implementations§
Source§impl OpsRouterBuilder
impl OpsRouterBuilder
pub fn new() -> Self
Sourcepub fn with_authenticator(self, auth: Arc<dyn Authenticator>) -> Self
pub fn with_authenticator(self, auth: Arc<dyn Authenticator>) -> Self
Required — [build] returns Err if not called.
Sourcepub fn with_run_log_store(self, store: Arc<dyn RunLogStore>) -> Self
pub fn with_run_log_store(self, store: Arc<dyn RunLogStore>) -> Self
Enables GET /runs, GET /runs/{id}, GET /agents.
Sourcepub fn with_task_store(self, store: Arc<A2aTaskStore>) -> Self
pub fn with_task_store(self, store: Arc<A2aTaskStore>) -> Self
Enables GET /tasks.
Sourcepub fn with_resume_buffer(self, buf: Arc<KvResumeBuffer>) -> Self
pub fn with_resume_buffer(self, buf: Arc<KvResumeBuffer>) -> Self
Enables GET /streams.
Sourcepub fn build(self) -> Result<Router, OpsBuilderError>
pub fn build(self) -> Result<Router, OpsBuilderError>
§Errors
Returns OpsBuilderError::MissingAuthenticator if
[with_authenticator] was not called before build.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OpsRouterBuilder
impl !UnwindSafe for OpsRouterBuilder
impl Freeze for OpsRouterBuilder
impl Send for OpsRouterBuilder
impl Sync for OpsRouterBuilder
impl Unpin for OpsRouterBuilder
impl UnsafeUnpin for OpsRouterBuilder
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