pub struct ExpectedId { /* private fields */ }
Expand description
A mock span ID.
This ID makes it possible to link together calls to different
MockCollector
span methods that take an ExpectedSpan
in
addition to those that take a NewSpan
.
Use expect::id
to construct a new, unset ExpectedId
.
For more details on how to use this struct, see the documentation
on ExpectedSpan::with_id
.
Trait Implementations§
Source§impl Clone for ExpectedId
impl Clone for ExpectedId
Source§fn clone(&self) -> ExpectedId
fn clone(&self) -> ExpectedId
Returns a copy 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 ExpectedId
impl Debug for ExpectedId
Source§impl Default for ExpectedId
impl Default for ExpectedId
Source§fn default() -> ExpectedId
fn default() -> ExpectedId
Returns the “default value” for a type. Read more
Source§impl From<&ExpectedId> for ExpectedSpan
impl From<&ExpectedId> for ExpectedSpan
Source§fn from(id: &ExpectedId) -> Self
fn from(id: &ExpectedId) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExpectedId
impl PartialEq for ExpectedId
impl Eq for ExpectedId
Auto Trait Implementations§
impl Freeze for ExpectedId
impl RefUnwindSafe for ExpectedId
impl Send for ExpectedId
impl Sync for ExpectedId
impl Unpin for ExpectedId
impl UnwindSafe for ExpectedId
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