Struct shuttle_runtime::ResourceTracker
source · pub struct ResourceTracker { /* private fields */ }Expand description
Used to keep track of which resources have been provisioned in the past and what is being provisioned for this deployment
Implementations§
source§impl ResourceTracker
impl ResourceTracker
pub fn new( past_resources: Vec<Response>, new_resources: Arc<Mutex<Vec<Response>>> ) -> Self
sourcepub fn get_cached_output(&self, type: Type, config: &Value) -> Option<Value>
pub fn get_cached_output(&self, type: Type, config: &Value) -> Option<Value>
Get the output of a resource that has been constructed in the past if it exists
sourcepub fn record_resource(&mut self, type: Type, config: Value, output: Value)
pub fn record_resource(&mut self, type: Type, config: Value, output: Value)
Record a resource that has been requested
Auto Trait Implementations§
impl RefUnwindSafe for ResourceTracker
impl Send for ResourceTracker
impl Sync for ResourceTracker
impl Unpin for ResourceTracker
impl UnwindSafe for ResourceTracker
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request