pub struct CommsToolMaterial { /* private fields */ }Expand description
Material needed by the facade’s comms tool composition helper.
Bundles the concrete router/trust/key access so the facade doesn’t
reach into CommsRuntime internals directly. Construct via
CommsRuntime::tool_material().
Implementations§
Source§impl CommsToolMaterial
impl CommsToolMaterial
Sourcepub fn trusted_peers(&self) -> &TrustedPeersView
pub fn trusted_peers(&self) -> &TrustedPeersView
Live trust state for peer availability gating.
Owned clone of the read-only trust view (for availability closures).
Sourcepub fn self_pubkey(&self) -> PubKey
pub fn self_pubkey(&self) -> PubKey
This runtime’s public key.
Sourcepub fn into_runtime(self) -> Arc<dyn CommsRuntime> ⓘ
pub fn into_runtime(self) -> Arc<dyn CommsRuntime> ⓘ
Trait-erased runtime for the comms tool surface.
Auto Trait Implementations§
impl !RefUnwindSafe for CommsToolMaterial
impl !UnwindSafe for CommsToolMaterial
impl Freeze for CommsToolMaterial
impl Send for CommsToolMaterial
impl Sync for CommsToolMaterial
impl Unpin for CommsToolMaterial
impl UnsafeUnpin for CommsToolMaterial
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