#[non_exhaustive]pub enum ResourceOwnership {
Application,
External,
Implicit,
Uncertain,
}Expand description
Who owns a named application resource lifecycle.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Application
The application declares and owns the resource.
External
The target environment owns the resource outside this application.
Implicit
A source implementation supplied the resource implicitly.
Uncertain
Runtime inspection established the resource but not who should manage its lifecycle.
Trait Implementations§
Source§impl Clone for ResourceOwnership
impl Clone for ResourceOwnership
Source§fn clone(&self) -> ResourceOwnership
fn clone(&self) -> ResourceOwnership
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 moreimpl Copy for ResourceOwnership
Source§impl Debug for ResourceOwnership
impl Debug for ResourceOwnership
impl Eq for ResourceOwnership
Source§impl PartialEq for ResourceOwnership
impl PartialEq for ResourceOwnership
impl StructuralPartialEq for ResourceOwnership
Auto Trait Implementations§
impl Freeze for ResourceOwnership
impl RefUnwindSafe for ResourceOwnership
impl Send for ResourceOwnership
impl Sync for ResourceOwnership
impl Unpin for ResourceOwnership
impl UnsafeUnpin for ResourceOwnership
impl UnwindSafe for ResourceOwnership
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