pub struct ResourceNode {
pub resource_id: String,
pub resource_type: ResourceNodeType,
pub current_holder: Option<String>,
}Expand description
A node in the resource dependency graph.
Fields§
§resource_id: StringUnique resource identifier.
resource_type: ResourceNodeTypeType of this resource.
current_holder: Option<String>Agent currently holding this resource.
Trait Implementations§
Source§impl Clone for ResourceNode
impl Clone for ResourceNode
Source§fn clone(&self) -> ResourceNode
fn clone(&self) -> ResourceNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResourceNode
impl RefUnwindSafe for ResourceNode
impl Send for ResourceNode
impl Sync for ResourceNode
impl Unpin for ResourceNode
impl UnsafeUnpin for ResourceNode
impl UnwindSafe for ResourceNode
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