pub struct RuntimeHandle { /* private fields */ }Implementations§
Source§impl RuntimeHandle
impl RuntimeHandle
pub fn new(config: RuntimeConfigWire) -> Result<Self, RuntimeErrorWire>
pub fn execute( &self, request: RuntimeRequestWire, ) -> Result<RuntimeResponseWire, RuntimeErrorWire>
Sourcepub fn execute_streamed<F>(
&self,
request: RuntimeRequestWire,
on_chunk: F,
) -> Result<(), RuntimeErrorWire>
pub fn execute_streamed<F>( &self, request: RuntimeRequestWire, on_chunk: F, ) -> Result<(), RuntimeErrorWire>
Streaming companion to Self::execute. The callback receives
one RuntimeChunkWire per complete cbor-seq item as bytes
arrive on the wire; returning false cancels the stream.
Returns when the stream terminates (clean end, error, or
cancellation).
Designed for the FFI surface — the callback gets raw CBOR bytes per item, so the host language decodes with its native CBOR library (Dart, Swift, Kotlin) rather than carrying a typed generic across the bridge.
pub fn state(&self) -> Result<PersistedClientState, ClientError>
Auto Trait Implementations§
impl !Freeze for RuntimeHandle
impl !RefUnwindSafe for RuntimeHandle
impl Send for RuntimeHandle
impl Sync for RuntimeHandle
impl Unpin for RuntimeHandle
impl UnsafeUnpin for RuntimeHandle
impl !UnwindSafe for RuntimeHandle
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