pub struct OwnerControlClient { /* private fields */ }Implementations§
Source§impl OwnerControlClient
impl OwnerControlClient
pub fn endpoint_token(&self) -> &str
pub fn local_node_id(&self) -> [u8; 32]
pub fn target_node_id(&self) -> [u8; 32]
pub async fn close(&self)
pub async fn get_config( &self, ) -> Result<OwnerControlConfigSnapshot, ControlPlaneClientError>
pub async fn apply_config( &self, expected_revision: u64, config: NodeConfigSnapshot, ) -> Result<OwnerControlApplyConfigResponse, ControlPlaneClientError>
pub async fn refresh_inventory( &self, ) -> Result<OwnerControlConfigSnapshot, ControlPlaneClientError>
pub async fn scan_refresh( &self, ) -> Result<OwnerControlScanRefreshResult, ControlPlaneClientError>
pub async fn load_model( &self, model_ref: String, profile: Option<String>, ) -> Result<OwnerControlLoadModelResponse, ControlPlaneClientError>
pub async fn unload_model( &self, model_ref: String, instance_id: Option<String>, ) -> Result<OwnerControlUnloadModelResponse, ControlPlaneClientError>
pub async fn ensure_model( &self, model_ref: String, profile: Option<String>, ) -> Result<OwnerControlEnsureModelResponse, ControlPlaneClientError>
pub async fn drain_model( &self, model_ref: String, instance_id: Option<String>, ) -> Result<OwnerControlDrainModelResponse, ControlPlaneClientError>
pub async fn watch_config( &self, include_snapshot: bool, ) -> Result<OwnerControlWatchStream, ControlPlaneClientError>
Auto Trait Implementations§
impl !Freeze for OwnerControlClient
impl !RefUnwindSafe for OwnerControlClient
impl !UnwindSafe for OwnerControlClient
impl Send for OwnerControlClient
impl Sync for OwnerControlClient
impl Unpin for OwnerControlClient
impl UnsafeUnpin for OwnerControlClient
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> 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 more