pub struct NodeServer { /* private fields */ }Implementations§
Source§impl NodeServer
impl NodeServer
pub fn new(config: NodeServerConfig) -> Result<Self, NodeServerError>
pub fn shutdown_handle(&self) -> NodeShutdownHandle
Sourcepub fn install_environment_profile(
&mut self,
profile: NodeEnvironmentProfile,
) -> Result<(), NodeServerError>
pub fn install_environment_profile( &mut self, profile: NodeEnvironmentProfile, ) -> Result<(), NodeServerError>
Installs one immutable host-local environment profile before the server runs.
Native resolvers remain inside the runtime; the shared node registry keeps only public IDs, revisions, provider bindings, and opaque native profile IDs.
Sourcepub fn install_bundle(
&mut self,
bundle: NodeBundle,
) -> Result<(), NodeServerError>
pub fn install_bundle( &mut self, bundle: NodeBundle, ) -> Result<(), NodeServerError>
Installs one immutable host-local bundle before the server runs.
pub async fn run_until_ctrl_signal(self) -> Result<(), NodeServerError>
pub async fn run(self) -> Result<(), NodeServerError>
Auto Trait Implementations§
impl !RefUnwindSafe for NodeServer
impl !Sync for NodeServer
impl !UnwindSafe for NodeServer
impl Freeze for NodeServer
impl Send for NodeServer
impl Unpin for NodeServer
impl UnsafeUnpin for NodeServer
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