pub struct NodeServer { /* private fields */ }Implementations§
Source§impl NodeServer
impl NodeServer
Sourcepub fn set_signer_proxy(&self, proxy: Arc<SignerProxy>) -> bool
pub fn set_signer_proxy(&self, proxy: Arc<SignerProxy>) -> bool
The letter-wake handle for the door, when m4a accounts are on. token is what callers
must present.
Turn on the m4a signer proxy for PTY spawns (replaces M4A_SESSION_CAP).
pub fn wake_handle( &self, token: String, policy: Arc<WakePolicy>, ) -> Option<NodeWake>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more