pub enum GoroutineType {
AnonymousFunction,
FunctionCall,
MethodCall,
Unknown,
}Expand description
Type of goroutine construct
Variants§
AnonymousFunction
go func() { … }()
FunctionCall
go myFunction()
MethodCall
go obj.method()
Unknown
Unknown or complex pattern
Trait Implementations§
Source§impl Clone for GoroutineType
impl Clone for GoroutineType
Source§fn clone(&self) -> GoroutineType
fn clone(&self) -> GoroutineType
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 GoroutineType
impl Debug for GoroutineType
Source§impl<'de> Deserialize<'de> for GoroutineType
impl<'de> Deserialize<'de> for GoroutineType
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
impl Eq for GoroutineType
Source§impl PartialEq for GoroutineType
impl PartialEq for GoroutineType
Source§fn eq(&self, other: &GoroutineType) -> bool
fn eq(&self, other: &GoroutineType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GoroutineType
impl Serialize for GoroutineType
impl StructuralPartialEq for GoroutineType
Auto Trait Implementations§
impl Freeze for GoroutineType
impl RefUnwindSafe for GoroutineType
impl Send for GoroutineType
impl Sync for GoroutineType
impl Unpin for GoroutineType
impl UnsafeUnpin for GoroutineType
impl UnwindSafe for GoroutineType
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