Struct opcua_types::response_header::ResponseHeader [−][src]
pub struct ResponseHeader {
pub timestamp: UtcTime,
pub request_handle: IntegerId,
pub service_result: StatusCode,
pub service_diagnostics: DiagnosticInfo,
pub string_table: Option<Vec<UAString>>,
pub additional_header: ExtensionObject,
}Expand description
The ResponseHeader contains information common to every response from server to client.
Fields
timestamp: UtcTimerequest_handle: IntegerIdservice_result: StatusCodeservice_diagnostics: DiagnosticInfostring_table: Option<Vec<UAString>>additional_header: ExtensionObjectImplementations
pub fn new_service_result(
request_header: &RequestHeader,
service_result: StatusCode
) -> ResponseHeader
pub fn new_timestamped_service_result(
timestamp: DateTime,
request_header: &RequestHeader,
service_result: StatusCode
) -> ResponseHeader
For testing, nothing else
Trait Implementations
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
Encodes the instance to the write stream.
Decodes an instance from the read stream. The decoding limits are 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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ResponseHeader
impl Send for ResponseHeader
impl Sync for ResponseHeader
impl Unpin for ResponseHeader
impl UnwindSafe for ResponseHeader
Blanket Implementations
Mutably borrows from an owned value. Read more