pub struct K8sObject {
pub api: Api<DynamicObject>,
pub obj: PartialObjectMeta,
pub kind: String,
}Available on crate feature
k8s only.Fields§
§api: Api<DynamicObject>§obj: PartialObjectMeta§kind: StringImplementations§
Source§impl K8sObject
impl K8sObject
pub fn rhai_delete(&mut self) -> RhaiRes<()>
pub fn rhai_wait_deleted(&mut self, timeout: i64) -> RhaiRes<()>
pub fn get_metadata(&mut self) -> RhaiRes<Dynamic>
pub fn get_kind(&mut self) -> String
pub fn original_kind(&mut self) -> String
pub fn is_condition(cond: String) -> impl Condition<DynamicObject>
pub fn wait_condition(&mut self, condition: String, timeout: i64) -> RhaiRes<()>
pub fn is_status(prop: String) -> impl Condition<DynamicObject>
pub fn have_status(prop: String) -> impl Condition<DynamicObject>
pub fn have_status_value( prop: String, value: String, ) -> impl Condition<DynamicObject>
pub fn wait_status(&mut self, prop: String, timeout: i64) -> RhaiRes<()>
pub fn wait_status_prop(&mut self, prop: String, timeout: i64) -> RhaiRes<()>
pub fn wait_status_string( &mut self, prop: String, value: String, timeout: i64, ) -> RhaiRes<()>
pub fn is_for( cond: Box<dyn Fn(&DynamicObject) -> Result<bool, Box<EvalAltResult>>>, ) -> impl Condition<DynamicObject>
pub fn wait_for( &mut self, condition: Box<dyn Fn(&DynamicObject) -> Result<bool, Box<EvalAltResult>>>, timeout: i64, ) -> RhaiRes<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for K8sObject
impl !UnwindSafe for K8sObject
impl Freeze for K8sObject
impl Send for K8sObject
impl Sync for K8sObject
impl Unpin for K8sObject
impl UnsafeUnpin for K8sObject
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> 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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Available on crate feature
map-response-body only.Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
Available on crate feature
trace only.High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
Available on crate feature
trace only.High level tracing that classifies responses using gRPC headers. Read more
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Available on crate feature
follow-redirect only.Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.