pub struct WebAdapter { /* private fields */ }Implementations§
Source§impl WebAdapter
impl WebAdapter
pub async fn spawn( runtime: Runtime, config: WebAdapterConfig, ) -> Result<Self, WebError>
pub async fn spawn_with_adapter( adapter: Arc<dyn WebPluginAdapter>, config: WebAdapterConfig, ) -> Result<Self, WebError>
pub async fn create_session( &self, tenant_id: &str, request: CreateSessionRequest, ) -> Result<CreateSessionResponse, WebError>
pub async fn create_turn( &self, tenant_id: &str, session_id: &str, request: CreateTurnRequest, ) -> Result<CreateTurnResponse, WebError>
pub async fn close_session( &self, tenant_id: &str, session_id: &str, ) -> Result<CloseSessionResponse, WebError>
pub async fn subscribe_session_events( &self, tenant_id: &str, session_id: &str, ) -> Result<Receiver<Envelope>, WebError>
pub async fn subscribe_session_approvals( &self, tenant_id: &str, session_id: &str, ) -> Result<Receiver<ServerRequest>, WebError>
pub async fn post_approval( &self, tenant_id: &str, session_id: &str, approval_id: &str, payload: ApprovalResponsePayload, ) -> Result<(), WebError>
Trait Implementations§
Source§impl Clone for WebAdapter
impl Clone for WebAdapter
Source§fn clone(&self) -> WebAdapter
fn clone(&self) -> WebAdapter
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 Freeze for WebAdapter
impl !RefUnwindSafe for WebAdapter
impl Send for WebAdapter
impl Sync for WebAdapter
impl Unpin for WebAdapter
impl UnsafeUnpin for WebAdapter
impl !UnwindSafe for WebAdapter
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