[−][src]Struct kube_runtime::controller::Context
A context data type that's passed through to the controllers callbacks
Contextreconciler
and the error_policy
callbacks.
allowing a read-only view of the world without creating a big nested lambda.
More or less the same as actix's Data
Implementations
impl<T> Context<T>
[src]
pub fn new(state: T) -> Context<T>
[src]
Create new Data
instance.
pub fn get_ref(&self) -> &T
[src]
Get reference to inner controller data.
pub fn into_inner(self) -> Arc<T>
[src]
Convert to the internal Arc
Trait Implementations
impl<T> Clone for Context<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for Context<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Context<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Context<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Sync for Context<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Unpin for Context<T>
impl<T> UnwindSafe for Context<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,