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