pub struct OwnersCache { /* private fields */ }Implementations§
Source§impl OwnersCache
impl OwnersCache
pub fn new(apiset: DynamicApiSet) -> OwnersCache
pub fn new_from_parts( apiset: DynamicApiSet, owners: HashMap<(GVK, String), Vec<OwnerReference>>, ) -> OwnersCache
pub fn compute_owners_for<'life0, 'life1, 'life_self, 'async_recursion>(
&'life_self mut self,
gvk: &'life0 GVK,
obj: &'life1 (impl Resource + Sync),
) -> Pin<Box<dyn Future<Output = Vec<OwnerReference>> + Send + 'async_recursion>>where
'life0: 'async_recursion,
'life1: 'async_recursion,
'life_self: 'async_recursion,
pub async fn lookup_by_name_or_obj( &mut self, gvk: &GVK, ns_name: &str, maybe_obj: Option<&(impl Resource + Sync)>, ) -> Vec<OwnerReference>
Auto Trait Implementations§
impl !RefUnwindSafe for OwnersCache
impl !UnwindSafe for OwnersCache
impl Freeze for OwnersCache
impl Send for OwnersCache
impl Sync for OwnersCache
impl Unpin for OwnersCache
impl UnsafeUnpin for OwnersCache
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