pub struct ControlPlaneClient { /* private fields */ }Expand description
Control plane client that maintains connection and handles messages.
Implementations§
Source§impl ControlPlaneClient
impl ControlPlaneClient
Sourcepub fn new(config: ControlPlaneConfig) -> Self
pub fn new(config: ControlPlaneConfig) -> Self
Create a new control plane client.
Sourcepub fn start(
self,
shutdown_rx: Receiver<bool>,
) -> (Receiver<ArtifactNotification>, Sender<ArtifactDownloadedResponse>)
pub fn start( self, shutdown_rx: Receiver<bool>, ) -> (Receiver<ArtifactNotification>, Sender<ArtifactDownloadedResponse>)
Start the connection loop in a background task. Returns a receiver for artifact notifications and a sender for download responses.
Auto Trait Implementations§
impl Freeze for ControlPlaneClient
impl RefUnwindSafe for ControlPlaneClient
impl Send for ControlPlaneClient
impl Sync for ControlPlaneClient
impl Unpin for ControlPlaneClient
impl UnwindSafe for ControlPlaneClient
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