pub struct Scope {
pub id: ScopeId,
pub birth: PTime,
pub backtrace: BacktraceId,
pub name: String,
pub body: ScopeBody,
}Expand description
A scope groups execution context over time (for example process/thread/task/connection).
Fields§
§id: ScopeIdOpaque scope identifier.
birth: PTimeWhen we first started tracking this scope.
backtrace: BacktraceIdLocation in source code and crate information.
name: StringHuman-facing name for this scope.
body: ScopeBodyMore specific info about the scope.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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