pub struct LogTopicId(/* private fields */);Expand description
Wrapper around TopicId that displays as topic_xxxxxxxx, a
salted 8-hex-char hash that is stable within one process run but
unlinkable across daemons or after restart.
Implementations§
Source§impl LogTopicId
impl LogTopicId
Sourcepub fn new(topic: TopicId) -> LogTopicId
pub fn new(topic: TopicId) -> LogTopicId
Wrap a TopicId for privacy-preserving log formatting.
Trait Implementations§
Source§impl Clone for LogTopicId
impl Clone for LogTopicId
Source§fn clone(&self) -> LogTopicId
fn clone(&self) -> LogTopicId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LogTopicId
Source§impl Debug for LogTopicId
impl Debug for LogTopicId
Source§impl Display for LogTopicId
impl Display for LogTopicId
Source§impl From<&TopicId> for LogTopicId
impl From<&TopicId> for LogTopicId
Source§fn from(topic: &TopicId) -> LogTopicId
fn from(topic: &TopicId) -> LogTopicId
Converts to this type from the input type.
Source§impl From<TopicId> for LogTopicId
impl From<TopicId> for LogTopicId
Source§fn from(topic: TopicId) -> LogTopicId
fn from(topic: TopicId) -> LogTopicId
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LogTopicId
impl RefUnwindSafe for LogTopicId
impl Send for LogTopicId
impl Sync for LogTopicId
impl Unpin for LogTopicId
impl UnsafeUnpin for LogTopicId
impl UnwindSafe for LogTopicId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more