pub struct InMemoryMeshRuntime { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for InMemoryMeshRuntime
impl Debug for InMemoryMeshRuntime
Source§impl Default for InMemoryMeshRuntime
impl Default for InMemoryMeshRuntime
Source§impl MeshRuntime for InMemoryMeshRuntime
impl MeshRuntime for InMemoryMeshRuntime
Source§fn respond(&self, request_id: &str, _data_base64: &str) -> bool
fn respond(&self, request_id: &str, _data_base64: &str) -> bool
Marks a pending query as answered. Returns true if the request was pending.
NOTE: Unlike LoopbackMeshRuntime and StatementStoreMeshRuntime,
this implementation does NOT emit a meshReply event and ignores
data_base64. This is a known asymmetry — the InMemoryMeshRuntime
is for unit testing, not production mesh transport.
fn publish(&self, _topic: &str, _data_base64: &str) -> bool
fn subscribe(&self, topic: &str) -> bool
fn put_object( &self, path: &str, data_base64: &str, policy: MeshObjectPolicy, ) -> bool
fn get_object_result(&self, path: &str) -> MeshObjectResult
fn request(&self, _path: &str, _data_base64: &str) -> String
fn status(&self) -> MeshStatusResult
fn supports_private(&self) -> bool
fn put_private_object( &self, data_base64: &str, policy: MeshObjectPolicy, ) -> MeshPrivateObjectRef
fn get_private_object_result( &self, handle: &str, capability: &str, ) -> MeshObjectResult
fn request_private( &self, handle: &str, capability: &str, _data_base64: &str, ) -> String
fn publish_private_control( &self, capability: &str, envelope: MeshControlEnvelope, ) -> bool
fn subscribe_private_control(&self, capability: &str) -> bool
fn publish_private_receipt(&self, capability: &str, data_base64: &str) -> bool
fn subscribe_private_receipt(&self, capability: &str) -> bool
fn drain_events(&self) -> Vec<HostPushEvent>
fn get_object(&self, path: &str) -> Option<String>
Auto Trait Implementations§
impl !Freeze for InMemoryMeshRuntime
impl RefUnwindSafe for InMemoryMeshRuntime
impl Send for InMemoryMeshRuntime
impl Sync for InMemoryMeshRuntime
impl Unpin for InMemoryMeshRuntime
impl UnsafeUnpin for InMemoryMeshRuntime
impl UnwindSafe for InMemoryMeshRuntime
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