pub struct PeerRpcHttpHost { /* private fields */ }Expand description
HTTP host exposing the stable peer health, manifest, query, and command routes.
Implementations§
Source§impl PeerRpcHttpHost
impl PeerRpcHttpHost
Sourcepub fn new(
host: impl Into<String>,
port: u16,
manifest: DistributedCoreManifest,
validator: PeerRpcValidator,
dispatcher: Arc<dyn PeerRpcDispatcher>,
authenticator: Arc<dyn PeerRpcAuthenticator>,
) -> Self
pub fn new( host: impl Into<String>, port: u16, manifest: DistributedCoreManifest, validator: PeerRpcValidator, dispatcher: Arc<dyn PeerRpcDispatcher>, authenticator: Arc<dyn PeerRpcAuthenticator>, ) -> Self
Creates a peer HTTP host with explicit validation, dispatch, and authentication.
Sourcepub fn run_until_shutdown(&self, shutdown: Arc<AtomicBool>) -> Result<()>
pub fn run_until_shutdown(&self, shutdown: Arc<AtomicBool>) -> Result<()>
Runs the host until the shared shutdown flag is set.
Auto Trait Implementations§
impl !RefUnwindSafe for PeerRpcHttpHost
impl !UnwindSafe for PeerRpcHttpHost
impl Freeze for PeerRpcHttpHost
impl Send for PeerRpcHttpHost
impl Sync for PeerRpcHttpHost
impl Unpin for PeerRpcHttpHost
impl UnsafeUnpin for PeerRpcHttpHost
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