pub struct None;Expand description
Discards every span: Exporter::sample is always false.
PHP: Utopia\Span\Exporter\None.
use utopia_span::exporter::{Exporter, None};
use utopia_span::Span;
let span = Span::new("test");
assert!(!None.sample(&span));
None.export(&span); // does nothinguse Utopia\Span\Exporter\None;
use Utopia\Span\Span;
$span = new Span('test');
var_dump((new None())->sample($span)); // bool(false)
(new None())->export($span); // does nothingTrait Implementations§
impl Copy for None
Auto Trait Implementations§
impl Forget for None
impl Freeze for None
impl Move for None
impl RefUnwindSafe for None
impl Send for None
impl Sync for None
impl Unpin for None
impl UnsafeUnpin for None
impl UnwindSafe for None
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