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
Source§fn clone(&self) -> PythonVfsRpcResponder
fn clone(&self) -> PythonVfsRpcResponder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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