Struct SampleRand
pub struct SampleRand(/* private fields */);Expand description
A random number generated at the start of a trace by the head of trace SDK.
Trait Implementations§
§impl Clone for SampleRand
impl Clone for SampleRand
§fn clone(&self) -> SampleRand
fn clone(&self) -> SampleRand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SampleRand
impl Debug for SampleRand
§impl<'de> Deserialize<'de> for SampleRand
impl<'de> Deserialize<'de> for SampleRand
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SampleRand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SampleRand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for SampleRand
impl Display for SampleRand
§impl FromStr for SampleRand
impl FromStr for SampleRand
§type Err = InvalidSampleRandError
type Err = InvalidSampleRandError
The associated error which can be returned from parsing.
§fn from_str(s: &str) -> Result<SampleRand, <SampleRand as FromStr>::Err>
fn from_str(s: &str) -> Result<SampleRand, <SampleRand as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl PartialEq for SampleRand
impl PartialEq for SampleRand
§impl Serialize for SampleRand
impl Serialize for SampleRand
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryFrom<f64> for SampleRand
impl TryFrom<f64> for SampleRand
§type Error = InvalidSampleRandError
type Error = InvalidSampleRandError
The type returned in the event of a conversion error.
§fn try_from(
value: f64,
) -> Result<SampleRand, <SampleRand as TryFrom<f64>>::Error>
fn try_from( value: f64, ) -> Result<SampleRand, <SampleRand as TryFrom<f64>>::Error>
Performs the conversion.
impl Copy for SampleRand
impl StructuralPartialEq for SampleRand
Auto Trait Implementations§
impl Freeze for SampleRand
impl RefUnwindSafe for SampleRand
impl Send for SampleRand
impl Sync for SampleRand
impl Unpin for SampleRand
impl UnsafeUnpin for SampleRand
impl UnwindSafe for SampleRand
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.