pub struct GoroutineUsage {
pub goroutine_range: Range,
pub variable_accesses: Vec<VariableAccess>,
pub goroutine_type: GoroutineType,
pub potential_race_level: RaceSeverity,
}Expand description
Information about goroutine usage of a variable
Fields§
§goroutine_range: RangeRange of the goroutine statement
variable_accesses: Vec<VariableAccess>All variable accesses within this goroutine
goroutine_type: GoroutineTypeType of goroutine (function call, anonymous function, etc.)
potential_race_level: RaceSeverityCalculated race severity level
Trait Implementations§
Source§impl Clone for GoroutineUsage
impl Clone for GoroutineUsage
Source§fn clone(&self) -> GoroutineUsage
fn clone(&self) -> GoroutineUsage
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 moreSource§impl Debug for GoroutineUsage
impl Debug for GoroutineUsage
Source§impl<'de> Deserialize<'de> for GoroutineUsage
impl<'de> Deserialize<'de> for GoroutineUsage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GoroutineUsage
impl RefUnwindSafe for GoroutineUsage
impl Send for GoroutineUsage
impl Sync for GoroutineUsage
impl Unpin for GoroutineUsage
impl UnsafeUnpin for GoroutineUsage
impl UnwindSafe for GoroutineUsage
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