pub struct MsgTrace(/* private fields */);
Expand description
Структура для представления пути, по которому передавалось сообщение
Implementations§
Source§impl MsgTrace
impl MsgTrace
Sourcepub fn generate_uuid() -> Uuid
pub fn generate_uuid() -> Uuid
Создать новый уникальный идентификатор
TODO - возможно заменить на что-то более компактное - например snowflake
Sourcepub fn add_trace_item(&mut self, id: Uuid)
pub fn add_trace_item(&mut self, id: Uuid)
Добавить запись пути
Sourcepub fn contains_trace_item(&self, id: &Uuid) -> bool
pub fn contains_trace_item(&self, id: &Uuid) -> bool
Определяет, есть ли в пути запись с заданным id
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MsgTrace
impl<'de> Deserialize<'de> for MsgTrace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MsgTrace
Auto Trait Implementations§
impl Freeze for MsgTrace
impl RefUnwindSafe for MsgTrace
impl Send for MsgTrace
impl Sync for MsgTrace
impl Unpin for MsgTrace
impl UnwindSafe for MsgTrace
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