pub struct AgentTaskSubmitter {
store: AgentTaskStore,
agent_name: String,
agent_version: String,
accepted_identity: AcceptedTaskIdentity,
}Expand description
Public, trusted submission surface for one statically resolved agent.
Fields§
§store: AgentTaskStore§agent_name: String§agent_version: String§accepted_identity: AcceptedTaskIdentityImplementations§
Source§impl AgentTaskSubmitter
impl AgentTaskSubmitter
pub fn store(&self) -> &AgentTaskStore
pub fn accepted_identity(&self) -> &AcceptedTaskIdentity
pub async fn submit( &self, request_key: impl Into<String>, input: impl Into<String>, payload_identity: Vec<u8>, ) -> Result<AgentTaskSubmissionResult>
pub async fn submit_with_queue_limit( &self, request_key: impl Into<String>, input: impl Into<String>, payload_identity: Vec<u8>, queue_limit: u32, ) -> Result<AgentTaskSubmissionResult>
Auto Trait Implementations§
impl !RefUnwindSafe for AgentTaskSubmitter
impl !UnwindSafe for AgentTaskSubmitter
impl Freeze for AgentTaskSubmitter
impl Send for AgentTaskSubmitter
impl Sync for AgentTaskSubmitter
impl Unpin for AgentTaskSubmitter
impl UnsafeUnpin for AgentTaskSubmitter
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more