pub struct PythonVfsRpcResponder { /* private fields */ }Expand description
Cloneable response lane for a pending Python VFS RPC.
Socket operations complete on the shared Tokio runtime after the sidecar dispatcher has returned to its event loop. Keeping only the pending-RPC state and V8 session handle here lets those tasks reply directly without parking the dispatcher or borrowing the process table across an await.
Implementations§
Source§impl PythonVfsRpcResponder
impl PythonVfsRpcResponder
pub fn respond_success( &self, id: u64, payload: PythonVfsRpcResponsePayload, ) -> Result<(), PythonExecutionError>
pub fn respond_error( &self, id: u64, code: impl Into<String>, message: impl Into<String>, ) -> Result<(), PythonExecutionError>
Trait Implementations§
Source§impl Clone for PythonVfsRpcResponder
impl Clone for PythonVfsRpcResponder
Auto Trait Implementations§
impl Freeze for PythonVfsRpcResponder
impl RefUnwindSafe for PythonVfsRpcResponder
impl Send for PythonVfsRpcResponder
impl Sync for PythonVfsRpcResponder
impl Unpin for PythonVfsRpcResponder
impl UnsafeUnpin for PythonVfsRpcResponder
impl UnwindSafe for PythonVfsRpcResponder
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