pub enum ResourceManagementIssue {
MissingDrop {
type_name: String,
resource_fields: Vec<ResourceField>,
suggested_drop_impl: String,
severity: ResourceSeverity,
location: SourceLocation,
},
ResourceLeak {
resource_type: ResourceType,
acquisition_site: SourceLocation,
leak_site: SourceLocation,
cleanup_suggestion: String,
},
AsyncResourceIssue {
function_name: String,
issue_type: AsyncResourceIssueType,
cancellation_safety: CancellationSafety,
mitigation_strategy: String,
location: SourceLocation,
},
UnboundedCollection {
collection_name: String,
collection_type: String,
growth_pattern: GrowthPattern,
bounding_strategy: BoundingStrategy,
location: SourceLocation,
},
RaiiViolation {
violation_type: RaiiViolationType,
resource_involved: String,
correct_pattern: String,
location: SourceLocation,
},
HandleLeak {
handle_type: HandleType,
leak_location: SourceLocation,
proper_cleanup: String,
},
}Variants§
MissingDrop
ResourceLeak
AsyncResourceIssue
Fields
§
issue_type: AsyncResourceIssueType§
cancellation_safety: CancellationSafety§
location: SourceLocationUnboundedCollection
RaiiViolation
HandleLeak
Trait Implementations§
Source§impl Clone for ResourceManagementIssue
impl Clone for ResourceManagementIssue
Source§fn clone(&self) -> ResourceManagementIssue
fn clone(&self) -> ResourceManagementIssue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceManagementIssue
impl Debug for ResourceManagementIssue
Source§impl PartialEq for ResourceManagementIssue
impl PartialEq for ResourceManagementIssue
impl StructuralPartialEq for ResourceManagementIssue
Auto Trait Implementations§
impl Freeze for ResourceManagementIssue
impl RefUnwindSafe for ResourceManagementIssue
impl Send for ResourceManagementIssue
impl Sync for ResourceManagementIssue
impl Unpin for ResourceManagementIssue
impl UnwindSafe for ResourceManagementIssue
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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