pub enum AcpRequest {
SessionNotification {
notification: Box<SessionNotification>,
response_tx: Sender<Result<(), AcpServerError>>,
},
ExtNotification {
notification: ExtNotification,
response_tx: Sender<Result<(), AcpServerError>>,
},
RequestPermission {
request: Box<RequestPermissionRequest>,
response_tx: Sender<Result<RequestPermissionResponse, AcpServerError>>,
},
ExtMethod {
request: ExtRequest,
response_tx: Sender<Result<ExtResponse, AcpServerError>>,
},
}Expand description
Messages that can be sent to the ACP actor.
Variants§
SessionNotification
ExtNotification
RequestPermission
Fields
§
request: Box<RequestPermissionRequest>§
response_tx: Sender<Result<RequestPermissionResponse, AcpServerError>>ExtMethod
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AcpRequest
impl !RefUnwindSafe for AcpRequest
impl Send for AcpRequest
impl Sync for AcpRequest
impl Unpin for AcpRequest
impl UnsafeUnpin for AcpRequest
impl !UnwindSafe for AcpRequest
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