pub struct DcpClient { /* private fields */ }Implementations§
Source§impl DcpClient
impl DcpClient
pub async fn connect_tcp(addr: SocketAddr, hello: Hello) -> DcpResult<Self>
pub async fn connect_quic( addr: SocketAddr, server_name: &str, client_config: ClientConfig, hello: Hello, ) -> DcpResult<Self>
pub async fn hello(&self, hello: Hello) -> DcpResult<()>
pub async fn request(&self, request: Request) -> DcpResult<Response>
pub async fn list_jobs(&self) -> DcpResult<Vec<WireJobStatus>>
pub async fn list_cluster_jobs( &self, timeout_ms: u64, ) -> DcpResult<ClusterJobList>
pub async fn cluster_node_info( &self, timeout_ms: u64, ) -> DcpResult<ClusterNodeList>
pub async fn start_job( &self, factory_name: impl Into<String>, instance_name: impl Into<String>, params: HashMap<String, String>, ) -> DcpResult<WireJobStatus>
pub async fn submit_cluster_job( &self, factory_name: impl Into<String>, instance_name: impl Into<String>, params: HashMap<String, String>, placement: PlacementSpec, timeout_ms: u64, ) -> DcpResult<WireJobStatus>
pub async fn drain_job( &self, name: impl Into<String>, ) -> DcpResult<WireJobStatus>
pub async fn drain_cluster_job( &self, name: impl Into<String>, timeout_ms: u64, ) -> DcpResult<WireJobStatus>
pub async fn stop_job( &self, name: impl Into<String>, ) -> DcpResult<WireJobStatus>
pub async fn stop_cluster_job( &self, name: impl Into<String>, timeout_ms: u64, ) -> DcpResult<WireJobStatus>
pub async fn restart_job( &self, name: impl Into<String>, ) -> DcpResult<WireJobStatus>
pub async fn job_status( &self, name: impl Into<String>, ) -> DcpResult<WireJobStatus>
pub async fn cluster_job_status( &self, name: impl Into<String>, timeout_ms: u64, ) -> DcpResult<WireJobStatus>
pub async fn allocate_shard( &self, type_name: impl Into<String>, shard_id: impl Into<String>, timeout_ms: u64, ) -> DcpResult<ShardAllocation>
pub async fn remember_shard_allocations( &self, table: ShardAllocationTable, ) -> DcpResult<()>
pub async fn get_shard_allocations( &self, type_name: impl Into<String>, timeout_ms: u64, ) -> DcpResult<ShardAllocationTable>
pub async fn forward_shard_envelopes( &self, batch: ForwardShardEnvelopes, timeout_ms: u64, ) -> DcpResult<ShardEnvelopeBatchResult>
pub async fn complete_sharding_ask( &self, reply: CompleteShardingAsk, ) -> DcpResult<()>
pub async fn subscribe_events(&self) -> DcpResult<EventSubscription>
pub async fn subscribe_metrics( &self, interval_ms: u64, ) -> DcpResult<MetricSubscription>
pub async fn get_config(&self, key: impl Into<String>) -> DcpResult<ConfigValue>
pub async fn put_config( &self, key: impl Into<String>, value: impl Into<String>, ) -> DcpResult<ConfigValue>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DcpClient
impl !UnwindSafe for DcpClient
impl Freeze for DcpClient
impl Send for DcpClient
impl Sync for DcpClient
impl Unpin for DcpClient
impl UnsafeUnpin for DcpClient
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