pub struct ClusterGatewayRuntime { /* private fields */ }Expand description
Cluster gateway / node data plane.
Holds the live ClusterRuntimeHandle and optional fragment/AI worker
endpoints installed on the authenticated internal RPC transport. Public
SQL/Kit/native user writes do not open a peer standalone WAL here.
Implementations§
Source§impl ClusterGatewayRuntime
impl ClusterGatewayRuntime
Sourcepub fn new(handle: ClusterRuntimeHandle) -> Self
pub fn new(handle: ClusterRuntimeHandle) -> Self
Wrap a started node runtime (workers may be installed later).
Sourcepub fn with_workers(
handle: ClusterRuntimeHandle,
fragment_endpoint: Arc<RemoteFragmentEndpoint>,
ai_endpoint: Arc<RemoteAiEndpoint>,
) -> Self
pub fn with_workers( handle: ClusterRuntimeHandle, fragment_endpoint: Arc<RemoteFragmentEndpoint>, ai_endpoint: Arc<RemoteAiEndpoint>, ) -> Self
Wrap a started node runtime that already has workers installed.
Sourcepub fn handle(&self) -> &ClusterRuntimeHandle
pub fn handle(&self) -> &ClusterRuntimeHandle
Live node runtime handle.
Sourcepub fn fragment_endpoint(&self) -> Option<&Arc<RemoteFragmentEndpoint>>
pub fn fragment_endpoint(&self) -> Option<&Arc<RemoteFragmentEndpoint>>
Installed fragment worker endpoint, when production start completed.
Sourcepub fn ai_endpoint(&self) -> Option<&Arc<RemoteAiEndpoint>>
pub fn ai_endpoint(&self) -> Option<&Arc<RemoteAiEndpoint>>
Installed AI worker endpoint, when production start completed.
Sourcepub fn set_workers(
&mut self,
fragment_endpoint: Arc<RemoteFragmentEndpoint>,
ai_endpoint: Arc<RemoteAiEndpoint>,
)
pub fn set_workers( &mut self, fragment_endpoint: Arc<RemoteFragmentEndpoint>, ai_endpoint: Arc<RemoteAiEndpoint>, )
Record worker endpoints after install (tests / staged startup).
Sourcepub fn workers_installed(&self) -> bool
pub fn workers_installed(&self) -> bool
Whether both production workers are installed.
Trait Implementations§
Source§impl Clone for ClusterGatewayRuntime
impl Clone for ClusterGatewayRuntime
Source§fn clone(&self) -> ClusterGatewayRuntime
fn clone(&self) -> ClusterGatewayRuntime
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 !RefUnwindSafe for ClusterGatewayRuntime
impl !UnwindSafe for ClusterGatewayRuntime
impl Freeze for ClusterGatewayRuntime
impl Send for ClusterGatewayRuntime
impl Sync for ClusterGatewayRuntime
impl Unpin for ClusterGatewayRuntime
impl UnsafeUnpin for ClusterGatewayRuntime
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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 moreSource§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