Struct opcua_core::prelude::DiagnosticInfo
source · [−]pub struct DiagnosticInfo {
pub symbolic_id: Option<i32>,
pub namespace_uri: Option<i32>,
pub locale: Option<i32>,
pub localized_text: Option<i32>,
pub additional_info: Option<UAString>,
pub inner_status_code: Option<StatusCode>,
pub inner_diagnostic_info: Option<Box<DiagnosticInfo, Global>>,
}
Expand description
Diagnostic information.
Fields
symbolic_id: Option<i32>
A symbolic name for the status code.
namespace_uri: Option<i32>
A namespace that qualifies the symbolic id.
locale: Option<i32>
The locale used for the localized text.
localized_text: Option<i32>
A human readable summary of the status code.
additional_info: Option<UAString>
Detailed application specific diagnostic information.
inner_status_code: Option<StatusCode>
A status code provided by an underlying system.
inner_diagnostic_info: Option<Box<DiagnosticInfo, Global>>
Diagnostic info associated with the inner status code.
Implementations
sourceimpl DiagnosticInfo
impl DiagnosticInfo
pub fn null() -> DiagnosticInfo
pub fn encoding_mask(&self) -> DiagnosticInfoMask
Trait Implementations
sourceimpl BinaryEncoder<DiagnosticInfo> for DiagnosticInfo
impl BinaryEncoder<DiagnosticInfo> for DiagnosticInfo
sourcefn byte_len(&self) -> usize
fn byte_len(&self) -> usize
Returns the exact byte length of the structure as it would be if encode
were called.
This may be called prior to writing to ensure the correct amount of space is available. Read more
sourcefn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode> where
S: Write,
fn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode> where
S: Write,
Encodes the instance to the write stream.
sourcefn decode<S>(
stream: &mut S,
decoding_options: &DecodingOptions
) -> Result<DiagnosticInfo, StatusCode> where
S: Read,
fn decode<S>(
stream: &mut S,
decoding_options: &DecodingOptions
) -> Result<DiagnosticInfo, StatusCode> where
S: Read,
Decodes an instance from the read stream. The decoding options contains restrictions set by
the server / client on the length of strings, arrays etc. If these limits are exceeded the
implementation should return with a BadDecodingError
as soon as possible. Read more
fn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl Clone for DiagnosticInfo
impl Clone for DiagnosticInfo
sourcefn clone(&self) -> DiagnosticInfo
fn clone(&self) -> DiagnosticInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DiagnosticInfo
impl Debug for DiagnosticInfo
sourceimpl Default for DiagnosticInfo
impl Default for DiagnosticInfo
sourcefn default() -> DiagnosticInfo
fn default() -> DiagnosticInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DiagnosticInfo
impl<'de> Deserialize<'de> for DiagnosticInfo
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<DiagnosticInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DiagnosticInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<DiagnosticInfo> for Variant
impl From<DiagnosticInfo> for Variant
sourcefn from(v: DiagnosticInfo) -> Variant
fn from(v: DiagnosticInfo) -> Variant
Converts to this type from the input type.
sourceimpl PartialEq<DiagnosticInfo> for DiagnosticInfo
impl PartialEq<DiagnosticInfo> for DiagnosticInfo
sourcefn eq(&self, other: &DiagnosticInfo) -> bool
fn eq(&self, other: &DiagnosticInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DiagnosticInfo) -> bool
fn ne(&self, other: &DiagnosticInfo) -> bool
This method tests for !=
.
sourceimpl Serialize for DiagnosticInfo
impl Serialize for DiagnosticInfo
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DiagnosticInfo
Auto Trait Implementations
impl RefUnwindSafe for DiagnosticInfo
impl Send for DiagnosticInfo
impl Sync for DiagnosticInfo
impl Unpin for DiagnosticInfo
impl UnwindSafe for DiagnosticInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more