pub struct RuntimeHandle { /* private fields */ }Implementations§
Source§impl RuntimeHandle
impl RuntimeHandle
Sourcepub fn new(config: RuntimeConfigWire) -> Result<Self, RuntimeErrorWire>
pub fn new(config: RuntimeConfigWire) -> Result<Self, RuntimeErrorWire>
A handle with no envelope. A config that names one
(CoseSign1, CoseMac0) is refused: the keys cannot travel in the
config, so build the handle with RuntimeHandle::with_envelope (feature cose).
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 !UnwindSafe for RuntimeHandle
impl Send for RuntimeHandle
impl Sync for RuntimeHandle
impl Unpin for RuntimeHandle
impl UnsafeUnpin 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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more