Struct tracy_client::FrameName
source · pub struct FrameName(/* private fields */);
Expand description
A name for secondary and non-continuous frames.
Create with the frame_name!
macro.
Implementations§
source§impl FrameName
impl FrameName
sourcepub fn new_leak(name: String) -> Self
pub fn new_leak(name: String) -> Self
Construct a FrameName
dynamically, leaking the provided String.
You should call this function once for a given name, and store the returned FrameName
for
continued use, to avoid rapid memory use growth. Whenever possible, prefer the
frame_name!
macro, which takes a literal name and doesn’t leak
memory.
The resulting value may be used as an argument for the the Client::secondary_frame_mark
and Client::non_continuous_frame
methods.
Trait Implementations§
source§impl Ord for FrameName
impl Ord for FrameName
source§impl PartialOrd for FrameName
impl PartialOrd for FrameName
impl Copy for FrameName
impl Eq for FrameName
impl StructuralPartialEq for FrameName
Auto Trait Implementations§
impl Freeze for FrameName
impl RefUnwindSafe for FrameName
impl Send for FrameName
impl Sync for FrameName
impl Unpin for FrameName
impl UnwindSafe for FrameName
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)