pub struct GeneratedFrontendClient<T> { /* private fields */ }Expand description
Generated typed Rust client over any facade transport.
Implementations§
Source§impl<T> GeneratedFrontendClient<T>
impl<T> GeneratedFrontendClient<T>
pub const fn new(transport: T) -> GeneratedFrontendClient<T>
Source§impl<T> GeneratedFrontendClient<T>where
T: FrontendFacadeTransport,
impl<T> GeneratedFrontendClient<T>where
T: FrontendFacadeTransport,
pub async fn describe(&self) -> Result<FrontendRuntimeDescriptor, SdkError>
pub async fn attach( &self, limit: u64, after_sequence: Option<u64>, ) -> Result<FrontendAttachSnapshot, SdkError>
pub async fn send_input( &self, prompt: String, image_urls: Option<Vec<String>>, ) -> Result<bool, SdkError>
pub async fn submit( &self, prompt: String, image_urls: Option<Vec<String>>, ) -> Result<String, SdkError>
pub async fn interrupt(&self) -> Result<bool, SdkError>
pub async fn steer(&self, prompt: String) -> Result<bool, SdkError>
pub async fn respond( &self, response: FrontendResponse, ) -> Result<bool, SdkError>
pub async fn invoke( &self, operation: FrontendOperationInvocation, ) -> Result<FrontendOperationResult, SdkError>
pub async fn lease(&self) -> Result<RuntimeLeaseSnapshot, SdkError>
pub async fn take_control(&self) -> Result<RuntimeLeaseSnapshot, SdkError>
pub async fn heartbeat(&self) -> Result<RuntimeLeaseSnapshot, SdkError>
pub async fn detach(&self) -> Result<RuntimeLeaseSnapshot, SdkError>
pub async fn close(&self) -> Result<bool, SdkError>
Auto Trait Implementations§
impl<T> Freeze for GeneratedFrontendClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for GeneratedFrontendClient<T>where
T: RefUnwindSafe,
impl<T> Send for GeneratedFrontendClient<T>where
T: Send,
impl<T> Sync for GeneratedFrontendClient<T>where
T: Sync,
impl<T> Unpin for GeneratedFrontendClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for GeneratedFrontendClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for GeneratedFrontendClient<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