pub struct ResourceSetupInfo<K, S, C: ResourceSetupChange> {
pub key: K,
pub state: Option<S>,
pub has_tracked_state_change: bool,
pub description: String,
pub setup_change: Option<C>,
pub legacy_key: Option<K>,
}Fields§
§key: K§state: Option<S>§has_tracked_state_change: bool§description: String§setup_change: Option<C>If None, the resource is managed by users.
legacy_key: Option<K>Implementations§
Source§impl<K, S, C: ResourceSetupChange> ResourceSetupInfo<K, S, C>
impl<K, S, C: ResourceSetupChange> ResourceSetupInfo<K, S, C>
pub fn is_up_to_date(&self) -> bool
Trait Implementations§
Source§impl<K: Debug, S: Debug, C: Debug + ResourceSetupChange> Debug for ResourceSetupInfo<K, S, C>
impl<K: Debug, S: Debug, C: Debug + ResourceSetupChange> Debug for ResourceSetupInfo<K, S, C>
Auto Trait Implementations§
impl<K, S, C> Freeze for ResourceSetupInfo<K, S, C>
impl<K, S, C> RefUnwindSafe for ResourceSetupInfo<K, S, C>
impl<K, S, C> Send for ResourceSetupInfo<K, S, C>
impl<K, S, C> Sync for ResourceSetupInfo<K, S, C>
impl<K, S, C> Unpin for ResourceSetupInfo<K, S, C>
impl<K, S, C> UnwindSafe for ResourceSetupInfo<K, S, C>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.