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 watch_config( &self, include_snapshot: bool, ) -> Result<OwnerControlWatchStream, ControlPlaneClientError>
Auto Trait Implementations§
impl !Freeze for OwnerControlClient
impl !RefUnwindSafe for OwnerControlClient
impl Send for OwnerControlClient
impl Sync for OwnerControlClient
impl Unpin for OwnerControlClient
impl UnsafeUnpin for OwnerControlClient
impl !UnwindSafe 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
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