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§
Source§impl Clone for SampleRand
impl Clone for SampleRand
Source§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 moreSource§impl Debug for SampleRand
impl Debug for SampleRand
Source§impl<'de> Deserialize<'de> for SampleRand
impl<'de> Deserialize<'de> for SampleRand
Source§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
Source§impl Display for SampleRand
impl Display for SampleRand
Source§impl FromStr for SampleRand
impl FromStr for SampleRand
Source§type Err = InvalidSampleRandError
type Err = InvalidSampleRandError
The associated error which can be returned from parsing.
Source§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 moreSource§impl PartialEq for SampleRand
impl PartialEq for SampleRand
Source§impl Serialize for SampleRand
impl Serialize for SampleRand
Source§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
Source§impl TryFrom<f64> for SampleRand
impl TryFrom<f64> for SampleRand
Source§type Error = InvalidSampleRandError
type Error = InvalidSampleRandError
The type returned in the event of a conversion error.
Source§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 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