pub struct ARCPRuntime { /* private fields */ }Expand description
The ARCP runtime. Cheap to clone; share across tasks.
Implementations§
Source§impl ARCPRuntime
impl ARCPRuntime
Sourcepub fn builder() -> RuntimeBuilder
pub fn builder() -> RuntimeBuilder
Construct via RuntimeBuilder.
Sourcepub fn artifacts(&self) -> &ArtifactStore
pub fn artifacts(&self) -> &ArtifactStore
Borrow the runtime’s artifact store.
Sourcepub fn subscriptions(&self) -> &SubscriptionManager
pub fn subscriptions(&self) -> &SubscriptionManager
Borrow the runtime’s subscription manager.
Sourcepub fn serve_connection<T: Transport + 'static>(
&self,
transport: T,
) -> JoinHandle<()>
pub fn serve_connection<T: Transport + 'static>( &self, transport: T, ) -> JoinHandle<()>
Spawn a per-connection task that drives the handshake and then
dispatches subsequent envelopes. The returned JoinHandle is
owned by the caller — Phase 2 doesn’t yet integrate with a
connection registry.
Trait Implementations§
Source§impl Clone for ARCPRuntime
impl Clone for ARCPRuntime
Source§fn clone(&self) -> ARCPRuntime
fn clone(&self) -> ARCPRuntime
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 ARCPRuntime
impl !RefUnwindSafe for ARCPRuntime
impl Send for ARCPRuntime
impl Sync for ARCPRuntime
impl Unpin for ARCPRuntime
impl UnsafeUnpin for ARCPRuntime
impl !UnwindSafe for ARCPRuntime
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