pub struct DevNodeControl { /* private fields */ }Expand description
The barrier’s node seam over the real registry and runtime.
Implementations§
Source§impl DevNodeControl
impl DevNodeControl
Sourcepub fn new(
registry: Arc<ComponentRegistry>,
swapper: SupportSwapper,
meta: ComponentMeta,
support: SupportModuleRef,
witness_mailbox: Witness,
witness_content: Witness,
) -> Self
pub fn new( registry: Arc<ComponentRegistry>, swapper: SupportSwapper, meta: ComponentMeta, support: SupportModuleRef, witness_mailbox: Witness, witness_content: Witness, ) -> Self
A control seam for one component on one node.
Trait Implementations§
Source§impl NodeControl for DevNodeControl
impl NodeControl for DevNodeControl
Source§fn stop_component(&mut self) -> Result<(), String>
fn stop_component(&mut self) -> Result<(), String>
Ordered stop of the component: drains admitted old work, awaits
the tree’s tombstones. After
Ok, nothing runs old code. Read moreSource§fn stage(&mut self, candidate: &CandidateBytes) -> Result<(), String>
fn stage(&mut self, candidate: &CandidateBytes) -> Result<(), String>
Purges retained old module code and stages these bytes for the
next start (the registry staging seam + support-module staging). Read more
Source§fn start_component(&mut self) -> Result<(), StartFailure>
fn start_component(&mut self) -> Result<(), StartFailure>
Starts the component tree from the staged bytes. Read more
Source§fn witness_mailbox(&mut self) -> Result<(), String>
fn witness_mailbox(&mut self) -> Result<(), String>
The mailbox liveness round-trip against the live tree. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DevNodeControl
impl !Sync for DevNodeControl
impl !UnwindSafe for DevNodeControl
impl Freeze for DevNodeControl
impl Send for DevNodeControl
impl Unpin for DevNodeControl
impl UnsafeUnpin for DevNodeControl
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request