Skip to main content

from_str

Function from_str 

Source
pub fn from_str(str: &str) -> Result<FmtSpan, FmtSpan>
Expand description

Parses a tracing span-lifecycle mode without case sensitivity.

Recognized names map to the corresponding FmtSpan flag. Unknown names return FmtSpan::NONE on the error side for use as a fallback.