pub struct KubernetesApplierSender<T: Transport> { /* private fields */ }
Expand description
KubernetesApplierSender sends messages to a KubernetesApplier service The KubernetesApplier service has a two methods, one to apply an object (that can be a create or update) and to delete an object client for sending KubernetesApplier messages
Implementations§
Source§impl<T: Transport> KubernetesApplierSender<T>
impl<T: Transport> KubernetesApplierSender<T>
Sourcepub fn via(transport: T) -> Self
pub fn via(transport: T) -> Self
Constructs a KubernetesApplierSender with the specified transport
pub fn set_timeout(&self, interval: Duration)
Trait Implementations§
Source§impl<T: Transport + Sync + Send> KubernetesApplier for KubernetesApplierSender<T>
impl<T: Transport + Sync + Send> KubernetesApplier for KubernetesApplierSender<T>
Source§fn apply<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 Vec<u8>,
) -> Pin<Box<dyn Future<Output = RpcResult<OperationResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn apply<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 Vec<u8>,
) -> Pin<Box<dyn Future<Output = RpcResult<OperationResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Attempts to create or update the arbitrary object it is given
Source§fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 DeleteRequest,
) -> Pin<Box<dyn Future<Output = RpcResult<OperationResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 DeleteRequest,
) -> Pin<Box<dyn Future<Output = RpcResult<OperationResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Attempts to delete an object with the given GVK (group, version, kind), name, and namespace. This should be idempotent, meaning that it should return successful if the object doesn’t exist
Source§fn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface
Auto Trait Implementations§
impl<T> Freeze for KubernetesApplierSender<T>where
T: Freeze,
impl<T> RefUnwindSafe for KubernetesApplierSender<T>where
T: RefUnwindSafe,
impl<T> Send for KubernetesApplierSender<T>
impl<T> Sync for KubernetesApplierSender<T>where
T: Sync,
impl<T> Unpin for KubernetesApplierSender<T>where
T: Unpin,
impl<T> UnwindSafe for KubernetesApplierSender<T>where
T: UnwindSafe,
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