pub struct SpanBuilder { /* private fields */ }Implementations§
Source§impl SpanBuilder
impl SpanBuilder
pub fn new(name: &'static str, span: Span) -> Self
pub fn span(&self) -> &Span
pub fn with_cluster_labels(self, cluster_labels: &Option<ClusterLabels>) -> Self
pub fn with_durability<D>(self, durability: Option<&D>) -> Self
pub fn with_keyspace(self, keyspace: &Keyspace<'_>) -> Self
pub fn with_service(self, service: Option<&'static str>) -> Self
pub fn with_statement(self, statement: &str) -> Self
pub fn build(self) -> Span
pub fn name(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for SpanBuilder
impl !RefUnwindSafe for SpanBuilder
impl Send for SpanBuilder
impl Sync for SpanBuilder
impl Unpin for SpanBuilder
impl UnsafeUnpin for SpanBuilder
impl !UnwindSafe for SpanBuilder
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