pub struct Properties { /* private fields */ }Available on crate feature
management only.Expand description
Builder of InstanceProperties.
Implementations§
Source§impl Properties
impl Properties
Sourcepub const KEY_HOST_NAME: &'static str = "hostname"
pub const KEY_HOST_NAME: &'static str = "hostname"
Instance properties key of host name.
Sourcepub const KEY_LANGUAGE: &'static str = "language"
pub const KEY_LANGUAGE: &'static str = "language"
Instance properties key of programming language.
Sourcepub const KEY_OS_NAME: &'static str = "OS Name"
pub const KEY_OS_NAME: &'static str = "OS Name"
Instance properties key of os name.
Sourcepub const KEY_PROCESS_NO: &'static str = "Process No."
pub const KEY_PROCESS_NO: &'static str = "Process No."
Instance properties key of process number.
Source§impl Properties
impl Properties
Sourcepub fn insert(&mut self, key: impl Into<String>, value: impl Into<String>)
pub fn insert(&mut self, key: impl Into<String>, value: impl Into<String>)
Insert key value pair, will not overwrite the original, because multiple values of the same key can exist.
Sourcepub fn update(&mut self, key: &str, value: impl Into<String>)
pub fn update(&mut self, key: &str, value: impl Into<String>)
Overwrite the values, whether there are multiple.
Sourcepub fn insert_os_info(&mut self)
pub fn insert_os_info(&mut self)
Insert the OS system info, such as os name, host name, etc.
Trait Implementations§
Source§impl Debug for Properties
impl Debug for Properties
Source§impl Default for Properties
impl Default for Properties
Source§fn default() -> Properties
fn default() -> Properties
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request