pub struct AcpActorHandle { /* private fields */ }Expand description
Send-safe handle to communicate with an AcpActor.
Implementations§
Source§impl AcpActorHandle
impl AcpActorHandle
pub fn new(request_tx: UnboundedSender<AcpRequest>) -> Self
pub async fn send_session_notification( &self, notification: SessionNotification, ) -> Result<(), AcpServerError>
pub async fn send_ext_notification( &self, notification: ExtNotification, ) -> Result<(), AcpServerError>
pub async fn request_permission( &self, request: RequestPermissionRequest, ) -> Result<RequestPermissionResponse, AcpServerError>
pub async fn ext_method( &self, request: ExtRequest, ) -> Result<ExtResponse, AcpServerError>
Trait Implementations§
Source§impl Clone for AcpActorHandle
impl Clone for AcpActorHandle
Source§fn clone(&self) -> AcpActorHandle
fn clone(&self) -> AcpActorHandle
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 AcpActorHandle
impl RefUnwindSafe for AcpActorHandle
impl Send for AcpActorHandle
impl Sync for AcpActorHandle
impl Unpin for AcpActorHandle
impl UnsafeUnpin for AcpActorHandle
impl UnwindSafe for AcpActorHandle
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