pub struct DcpServer { /* private fields */ }Implementations§
Source§impl DcpServer
impl DcpServer
pub fn new( registry: JobRegistryHandle, instrumentation: StreamInstrumentationRegistry, factories: DcpJobFactories, config: DcpServerConfig, ) -> Self
pub fn from_agent( agent: &AgentHandle, factories: DcpJobFactories, config: DcpServerConfig, ) -> Self
Sourcepub fn set_cluster_view(&self, provider: Arc<dyn ClusterViewProvider>)
pub fn set_cluster_view(&self, provider: Arc<dyn ClusterViewProvider>)
Install or replace the provider used for cluster-wide read-only DCP requests.
Sourcepub fn clear_cluster_view(&self)
pub fn clear_cluster_view(&self)
Remove the cluster view provider. Cluster DCP requests will fail until a provider is installed again.
Sourcepub fn set_sharding_view(&self, provider: Arc<dyn ShardingViewProvider>)
pub fn set_sharding_view(&self, provider: Arc<dyn ShardingViewProvider>)
Install or replace the provider used for cluster-sharding DCP requests.
Sourcepub fn clear_sharding_view(&self)
pub fn clear_sharding_view(&self)
Remove the sharding provider. Sharding DCP requests will fail until a provider is installed again.
pub async fn start(&self) -> DcpResult<DcpServerHandle>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DcpServer
impl !UnwindSafe for DcpServer
impl Freeze for DcpServer
impl Send for DcpServer
impl Sync for DcpServer
impl Unpin for DcpServer
impl UnsafeUnpin for DcpServer
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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage