diff --git a/client/src/builder.rs b/client/src/builder.rs index a52ea1b9f..9d39feea0 100644 --- a/client/src/builder.rs +++ b/client/src/builder.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::path::PathBuf; use opcua_core::config::Config; diff --git a/client/src/callbacks.rs b/client/src/callbacks.rs index 1a6a8d82b..b3e486f18 100644 --- a/client/src/callbacks.rs +++ b/client/src/callbacks.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides callback traits and concrete implementations that the client can use to register for notifications //! with the client api. //! diff --git a/client/src/client.rs b/client/src/client.rs index c66982b1b..9b7df5e1d 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Client setup and session creation. use std::{ diff --git a/client/src/comms/mod.rs b/client/src/comms/mod.rs index fd281dd6f..d09fbf54a 100644 --- a/client/src/comms/mod.rs +++ b/client/src/comms/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Client side communications mod transport; diff --git a/client/src/comms/tcp_transport.rs b/client/src/comms/tcp_transport.rs index 9a05810e0..81c0bbebf 100644 --- a/client/src/comms/tcp_transport.rs +++ b/client/src/comms/tcp_transport.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! The OPC UA TCP transport client module. The transport is responsible for establishing a connection //! with the server and processing requests. //! diff --git a/client/src/comms/transport.rs b/client/src/comms/transport.rs index b76d86470..1897bf61b 100644 --- a/client/src/comms/transport.rs +++ b/client/src/comms/transport.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + /// A trait common to all transport implementations pub(crate) trait Transport { // Common functions will go here diff --git a/client/src/config.rs b/client/src/config.rs index 8cf790ed1..fb3424b77 100644 --- a/client/src/config.rs +++ b/client/src/config.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Client configuration data. use std::{ diff --git a/client/src/lib.rs b/client/src/lib.rs index 9ee2563a9..58232dbe7 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! The OPC UA Client module contains the functionality necessary for a client to connect to an OPC UA server, //! authenticate itself, send messages, receive responses, get values, browse the address space and //! provide callbacks for things to be propagated to the client. diff --git a/client/src/message_queue.rs b/client/src/message_queue.rs index 71c51927b..efb1af85f 100644 --- a/client/src/message_queue.rs +++ b/client/src/message_queue.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::collections::{HashMap, HashSet}; use futures::sync::mpsc::{self, UnboundedReceiver, UnboundedSender}; diff --git a/client/src/session.rs b/client/src/session.rs index 15a99ab6a..f320dd87a 100644 --- a/client/src/session.rs +++ b/client/src/session.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Session functionality for the current open client connection. This module contains functions //! to call for all typically synchronous operations during an OPC UA session. //! diff --git a/client/src/session_retry.rs b/client/src/session_retry.rs index b843d5fbd..605b27e79 100644 --- a/client/src/session_retry.rs +++ b/client/src/session_retry.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use chrono::{DateTime, TimeZone, Utc}; use time::Duration; diff --git a/client/src/session_state.rs b/client/src/session_state.rs index 10f9d699e..e5a7726ea 100644 --- a/client/src/session_state.rs +++ b/client/src/session_state.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ self, sync::{ diff --git a/client/src/subscription.rs b/client/src/subscription.rs index 706788a78..5e295875c 100644 --- a/client/src/subscription.rs +++ b/client/src/subscription.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides subscription and monitored item tracking. //! //! The structs and functions in this file allow the client to maintain a shadow copy of the diff --git a/client/src/subscription_state.rs b/client/src/subscription_state.rs index 4ec4bc91e..01e8d3d6a 100644 --- a/client/src/subscription_state.rs +++ b/client/src/subscription_state.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::collections::HashMap; use std::sync::{Arc, RwLock}; diff --git a/client/src/subscription_timer.rs b/client/src/subscription_timer.rs index 4ddca9aef..6643990d9 100644 --- a/client/src/subscription_timer.rs +++ b/client/src/subscription_timer.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ sync::{Arc, RwLock}, thread, diff --git a/console-logging/src/lib.rs b/console-logging/src/lib.rs index 1f50aa723..58ac68a90 100644 --- a/console-logging/src/lib.rs +++ b/console-logging/src/lib.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + #[macro_use] extern crate log; #[macro_use] diff --git a/core/src/comms/chunker.rs b/core/src/comms/chunker.rs index d4d03a9ec..39e27d8bb 100644 --- a/core/src/comms/chunker.rs +++ b/core/src/comms/chunker.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains code for turning messages into chunks and chunks into messages. use std; diff --git a/core/src/comms/message_chunk.rs b/core/src/comms/message_chunk.rs index 26f127bd1..02c0b592b 100644 --- a/core/src/comms/message_chunk.rs +++ b/core/src/comms/message_chunk.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! A message chunk is a message or a portion of a message, optionally encrypted & signed, which //! has been split for transmission. diff --git a/core/src/comms/message_chunk_info.rs b/core/src/comms/message_chunk_info.rs index cbd87d6fa..c43ecf3a6 100644 --- a/core/src/comms/message_chunk_info.rs +++ b/core/src/comms/message_chunk_info.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std; use std::io::Cursor; diff --git a/core/src/comms/message_writer.rs b/core/src/comms/message_writer.rs index d31038e42..820a36ac1 100644 --- a/core/src/comms/message_writer.rs +++ b/core/src/comms/message_writer.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::io::{Cursor, Write}; use opcua_types::{ diff --git a/core/src/comms/mod.rs b/core/src/comms/mod.rs index 043ec06ad..2aa5bfa7f 100644 --- a/core/src/comms/mod.rs +++ b/core/src/comms/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains all code related to sending / receiving messages from a transport //! and turning those messages into and out of chunks. diff --git a/core/src/comms/secure_channel.rs b/core/src/comms/secure_channel.rs index 265cc7218..6a6e6203d 100644 --- a/core/src/comms/secure_channel.rs +++ b/core/src/comms/secure_channel.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use chrono; use opcua_crypto::{ aeskey::AesKey, diff --git a/core/src/comms/security_header.rs b/core/src/comms/security_header.rs index 67006c10b..e8d32af1a 100644 --- a/core/src/comms/security_header.rs +++ b/core/src/comms/security_header.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::io::{Read, Write}; use opcua_types::*; diff --git a/core/src/comms/tcp_codec.rs b/core/src/comms/tcp_codec.rs index 1d9cc38f6..d80582cb5 100644 --- a/core/src/comms/tcp_codec.rs +++ b/core/src/comms/tcp_codec.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! The codec is an implementation of a tokio Encoder/Decoder which can be used to read //! data from the socket in terms of frames which in our case are any of the following: //! diff --git a/core/src/comms/tcp_types.rs b/core/src/comms/tcp_types.rs index c780b11a7..fbfd8d9eb 100644 --- a/core/src/comms/tcp_types.rs +++ b/core/src/comms/tcp_types.rs @@ -1,4 +1,8 @@ - //! Contains the implementation of various UA over TCP types. +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + +//! Contains the implementation of various UA over TCP types. use std::io::{Cursor, Error, ErrorKind, Read, Result, Write}; diff --git a/core/src/comms/url.rs b/core/src/comms/url.rs index 207d5d510..9bd2a4f51 100644 --- a/core/src/comms/url.rs +++ b/core/src/comms/url.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides functions for parsing Urls from strings. use std; diff --git a/core/src/comms/wrapped_tcp_stream.rs b/core/src/comms/wrapped_tcp_stream.rs index 954b5d3f9..51386efa7 100644 --- a/core/src/comms/wrapped_tcp_stream.rs +++ b/core/src/comms/wrapped_tcp_stream.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::io::{self, Read, Write}; use bytes::{Buf, BufMut}; diff --git a/core/src/completion_pact.rs b/core/src/completion_pact.rs index ee26ebfdc..c42319293 100644 --- a/core/src/completion_pact.rs +++ b/core/src/completion_pact.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! This type and the use of it is adapted from an answer on this discussion. //! //! https://stackoverflow.com/questions/42462441/how-to-cleanly-break-tokio-core-event-loop-and-futuresstream-in-rust diff --git a/core/src/config.rs b/core/src/config.rs index d320d96c8..594b762a4 100644 --- a/core/src/config.rs +++ b/core/src/config.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::result::Result; use std::path::Path; use std::fs::File; diff --git a/core/src/handle.rs b/core/src/handle.rs index a3daac971..852509139 100644 --- a/core/src/handle.rs +++ b/core/src/handle.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::u32; /// A simple handle factory for incrementing sequences of numbers. diff --git a/core/src/lib.rs b/core/src/lib.rs index 0e37ffdc1..7b425cc68 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! The OPC UA Core module holds functionality that is common to server and clients that make use of OPC UA. //! It contains message chunking, cryptography / pki, communications and standard handshake messages. diff --git a/core/src/runtime.rs b/core/src/runtime.rs index adcb62dc8..f45f98018 100644 --- a/core/src/runtime.rs +++ b/core/src/runtime.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ collections::BTreeSet, sync::{Arc, Mutex}, diff --git a/crypto/src/aeskey.rs b/crypto/src/aeskey.rs index f4dff55b8..d4124892b 100644 --- a/crypto/src/aeskey.rs +++ b/crypto/src/aeskey.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Symmetric encryption / decryption wrapper. use opcua_types::status_code::StatusCode; use openssl::symm::{Cipher, Crypter, Mode}; diff --git a/crypto/src/certificate_store.rs b/crypto/src/certificate_store.rs index 1dbfeb4ef..15f30c045 100644 --- a/crypto/src/certificate_store.rs +++ b/crypto/src/certificate_store.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! The certificate store holds and retrieves private keys and certificates from disk. It is responsible //! for checking certificates supplied by the remote end to see if they are valid and trusted or not. use opcua_types::service_types::ApplicationDescription; diff --git a/crypto/src/hash.rs b/crypto/src/hash.rs index 5db0a2a6a..df50a188a 100644 --- a/crypto/src/hash.rs +++ b/crypto/src/hash.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Hashing functions used for producing and verifying digital signatures use std::result::Result; diff --git a/crypto/src/lib.rs b/crypto/src/lib.rs index 6d2126d43..b5abb2166 100644 --- a/crypto/src/lib.rs +++ b/crypto/src/lib.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Crypto related functionality. It is used for establishing //! trust between a client and server via certificate exchange and validation. It also used for //! encrypting / decrypting messages and signing messages. diff --git a/crypto/src/pkey.rs b/crypto/src/pkey.rs index 8e54ae02c..9e8f6e0b8 100644 --- a/crypto/src/pkey.rs +++ b/crypto/src/pkey.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Asymmetric encryption / decryption, signing / verification wrapper. use std::{ self, diff --git a/crypto/src/random.rs b/crypto/src/random.rs index 9596e3cf8..960248c23 100644 --- a/crypto/src/random.rs +++ b/crypto/src/random.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Module contains functions for creating cryptographically strong random bytes. use openssl::rand; diff --git a/crypto/src/security_policy.rs b/crypto/src/security_policy.rs index d0e7ead01..dde82bd46 100644 --- a/crypto/src/security_policy.rs +++ b/crypto/src/security_policy.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Security policy is the symmetric, asymmetric encryption / decryption + signing / verification //! algorithms to use and enforce for the current session. use opcua_types::{ diff --git a/crypto/src/thumbprint.rs b/crypto/src/thumbprint.rs index 800cec820..856328fc6 100644 --- a/crypto/src/thumbprint.rs +++ b/crypto/src/thumbprint.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Functionality for holding a message digest. use opcua_types::ByteString; diff --git a/crypto/src/user_identity.rs b/crypto/src/user_identity.rs index 756de4ff4..93c6165b0 100644 --- a/crypto/src/user_identity.rs +++ b/crypto/src/user_identity.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Functions related to encrypting / decrypting passwords in a UserNameIdentityToken. //! //! The code here determines how or if to encrypt the password depending on the security policy diff --git a/crypto/src/x509.rs b/crypto/src/x509.rs index c82d1d91e..05fb8c2ff 100644 --- a/crypto/src/x509.rs +++ b/crypto/src/x509.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + // X509 certificate wrapper. use std::{ diff --git a/server/src/address_space/address_space.rs b/server/src/address_space/address_space.rs index 2e3474a0a..a17f3f31e 100644 --- a/server/src/address_space/address_space.rs +++ b/server/src/address_space/address_space.rs @@ -1,5 +1,8 @@ - //! Implementation of `AddressSpace`. -//! +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + +//! Implementation of `AddressSpace`. use std::collections::HashMap; use std::sync::{Arc, Mutex, RwLock}; diff --git a/server/src/address_space/base.rs b/server/src/address_space/base.rs index 1d260b15d..18bce491a 100644 --- a/server/src/address_space/base.rs +++ b/server/src/address_space/base.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::{ *, status_code::StatusCode, diff --git a/server/src/address_space/data_type.rs b/server/src/address_space/data_type.rs index e1fb35da0..faaf91ec9 100644 --- a/server/src/address_space/data_type.rs +++ b/server/src/address_space/data_type.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `Method` and `MethodBuilder`. use opcua_types::service_types::DataTypeAttributes; diff --git a/server/src/address_space/method.rs b/server/src/address_space/method.rs index ad474587e..ade62a372 100644 --- a/server/src/address_space/method.rs +++ b/server/src/address_space/method.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `Method` and `MethodBuilder`. use opcua_types::service_types::{Argument, MethodAttributes}; diff --git a/server/src/address_space/method_impls.rs b/server/src/address_space/method_impls.rs index 39068a27d..dd8e515dd 100644 --- a/server/src/address_space/method_impls.rs +++ b/server/src/address_space/method_impls.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::*; use opcua_types::status_code::StatusCode; use opcua_types::service_types::{CallMethodRequest, CallMethodResult}; diff --git a/server/src/address_space/mod.rs b/server/src/address_space/mod.rs index 78a780539..b0d05fbf3 100644 --- a/server/src/address_space/mod.rs +++ b/server/src/address_space/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides functionality to create an address space, find nodes, add nodes, change attributes //! and values on nodes. diff --git a/server/src/address_space/node.rs b/server/src/address_space/node.rs index c7f2a6c58..2cbdc0cc2 100644 --- a/server/src/address_space/node.rs +++ b/server/src/address_space/node.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::{ AttributeId, DataValue, LocalizedText, NodeId, NumericRange, QualifiedName, service_types::NodeClass, status_code::StatusCode, Variant, WriteMask, diff --git a/server/src/address_space/object.rs b/server/src/address_space/object.rs index 29dd4a91f..bc06429c0 100644 --- a/server/src/address_space/object.rs +++ b/server/src/address_space/object.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `Object` and `ObjectBuilder`. use opcua_types::service_types::ObjectAttributes; diff --git a/server/src/address_space/object_type.rs b/server/src/address_space/object_type.rs index 99ee38262..614f1cc66 100644 --- a/server/src/address_space/object_type.rs +++ b/server/src/address_space/object_type.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `ObjectType` and `ObjectTypeBuilder`. use opcua_types::service_types::ObjectTypeAttributes; diff --git a/server/src/address_space/reference_type.rs b/server/src/address_space/reference_type.rs index 9376665fe..f6ac95f58 100644 --- a/server/src/address_space/reference_type.rs +++ b/server/src/address_space/reference_type.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `ReferenceType` and `ReferenceTypeBuilder`. use opcua_types::service_types::ReferenceTypeAttributes; diff --git a/server/src/address_space/references.rs b/server/src/address_space/references.rs index a17ee280b..94847e016 100644 --- a/server/src/address_space/references.rs +++ b/server/src/address_space/references.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::collections::{HashMap, HashSet}; use opcua_types::*; diff --git a/server/src/address_space/relative_path.rs b/server/src/address_space/relative_path.rs index 1e245a1d4..a027d49f1 100644 --- a/server/src/address_space/relative_path.rs +++ b/server/src/address_space/relative_path.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::collections::HashSet; use opcua_types::{ diff --git a/server/src/address_space/variable.rs b/server/src/address_space/variable.rs index 33b6243e4..4837ef1ca 100644 --- a/server/src/address_space/variable.rs +++ b/server/src/address_space/variable.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `Variable` and `VariableBuilder`. use std::convert::{Into, TryFrom}; diff --git a/server/src/address_space/variable_type.rs b/server/src/address_space/variable_type.rs index 185b00e72..abbdf7851 100644 --- a/server/src/address_space/variable_type.rs +++ b/server/src/address_space/variable_type.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `VariableType` and `VariableTypeBuilder`. use std::convert::TryFrom; diff --git a/server/src/address_space/view.rs b/server/src/address_space/view.rs index ef1b7b48b..82a67946a 100644 --- a/server/src/address_space/view.rs +++ b/server/src/address_space/view.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `View` and `ViewBuilder`. use opcua_types::service_types::ViewAttributes; diff --git a/server/src/builder.rs b/server/src/builder.rs index b27f0e0c7..f5441bf7e 100644 --- a/server/src/builder.rs +++ b/server/src/builder.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::path::PathBuf; use opcua_core::config::Config; diff --git a/server/src/callbacks.rs b/server/src/callbacks.rs index cb5127911..8ef60009a 100644 --- a/server/src/callbacks.rs +++ b/server/src/callbacks.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Callbacks that a server implementation may register with the library use std::sync::{Arc, RwLock}; diff --git a/server/src/comms/mod.rs b/server/src/comms/mod.rs index c5e5c8f8c..b85b2e801 100644 --- a/server/src/comms/mod.rs +++ b/server/src/comms/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides communication services for the server such as the transport layer and secure //! channel implementation diff --git a/server/src/comms/secure_channel_service.rs b/server/src/comms/secure_channel_service.rs index 4105f5b30..e5ed54f30 100644 --- a/server/src/comms/secure_channel_service.rs +++ b/server/src/comms/secure_channel_service.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::result::Result; use opcua_core::{ diff --git a/server/src/comms/tcp_transport.rs b/server/src/comms/tcp_transport.rs index 84b7e924b..6cd4fd0c4 100644 --- a/server/src/comms/tcp_transport.rs +++ b/server/src/comms/tcp_transport.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! The TCP transport module handles receiving and sending of binary data in chunks, handshake, //! session creation and dispatching of messages via message handler. //! diff --git a/server/src/comms/transport.rs b/server/src/comms/transport.rs index 3df349809..6441f4c96 100644 --- a/server/src/comms/transport.rs +++ b/server/src/comms/transport.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Defines the traits and other agnostic properties that all OPC UA transports will share. //! Provides a level of abstraction for the server to call through when it doesn't require specific //! knowledge of the transport it is using. diff --git a/server/src/config.rs b/server/src/config.rs index 5343c7182..c12fa1118 100644 --- a/server/src/config.rs +++ b/server/src/config.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides configuration settings for the server including serialization and deserialization from file. use opcua_core::{ comms::url::url_matches_except_host, diff --git a/server/src/continuation_point.rs b/server/src/continuation_point.rs index b248b8c08..267c5900e 100644 --- a/server/src/continuation_point.rs +++ b/server/src/continuation_point.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides a browse continuation point type for tracking a browse operation initiated by a client. use std::sync::{Arc, Mutex}; diff --git a/server/src/diagnostics.rs b/server/src/diagnostics.rs index 4aaa4245a..d84a4882e 100644 --- a/server/src/diagnostics.rs +++ b/server/src/diagnostics.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides diagnostics structures and functions for gathering information about the running //! state of a server. use opcua_types::service_types::ServerDiagnosticsSummaryDataType; diff --git a/server/src/discovery/mod.rs b/server/src/discovery/mod.rs index 5e4f2ee5b..13b37f72a 100644 --- a/server/src/discovery/mod.rs +++ b/server/src/discovery/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_client::prelude::ClientBuilder; use crate::state::ServerState; diff --git a/server/src/events/audit/cancel_event.rs b/server/src/events/audit/cancel_event.rs index 50c6ce34d..d11416a6e 100644 --- a/server/src/events/audit/cancel_event.rs +++ b/server/src/events/audit/cancel_event.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::*; use crate::{ diff --git a/server/src/events/audit/certificate_events.rs b/server/src/events/audit/certificate_events.rs index f4472c5d7..81b755a86 100644 --- a/server/src/events/audit/certificate_events.rs +++ b/server/src/events/audit/certificate_events.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::*; use crate::{ diff --git a/server/src/events/audit/event.rs b/server/src/events/audit/event.rs index 071ab8cb4..e2bb6593b 100644 --- a/server/src/events/audit/event.rs +++ b/server/src/events/audit/event.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::*; use crate::{ diff --git a/server/src/events/audit/mod.rs b/server/src/events/audit/mod.rs index d158cd83d..fd3d74932 100644 --- a/server/src/events/audit/mod.rs +++ b/server/src/events/audit/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! This module implements the audit event types. //! //! Note: Due to Rust's lack of inheritance, these types use aggregation and helper macros to expose diff --git a/server/src/events/audit/node_management_event.rs b/server/src/events/audit/node_management_event.rs index 3ea787c92..e2f153116 100644 --- a/server/src/events/audit/node_management_event.rs +++ b/server/src/events/audit/node_management_event.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::*; use crate::{ diff --git a/server/src/events/audit/security_event.rs b/server/src/events/audit/security_event.rs index dd27ef8af..6f6207ab6 100644 --- a/server/src/events/audit/security_event.rs +++ b/server/src/events/audit/security_event.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::*; use crate::{ diff --git a/server/src/events/audit/session_events.rs b/server/src/events/audit/session_events.rs index 64ccabf7b..3dd787262 100644 --- a/server/src/events/audit/session_events.rs +++ b/server/src/events/audit/session_events.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_crypto::X509; use opcua_types::*; diff --git a/server/src/events/event.rs b/server/src/events/event.rs index fc604e049..377f58fdd 100644 --- a/server/src/events/event.rs +++ b/server/src/events/event.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains functions for generating events and adding them to the address space of the server. use opcua_types::{ AttributeId, ByteString, DateTime, DateTimeUtc, ExtensionObject, Guid, LocalizedText, NodeId, diff --git a/server/src/events/event_filter.rs b/server/src/events/event_filter.rs index 4a4d5d36f..d1cb8a84f 100644 --- a/server/src/events/event_filter.rs +++ b/server/src/events/event_filter.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::convert::TryFrom; use opcua_types::{ diff --git a/server/src/events/mod.rs b/server/src/events/mod.rs index d16bff8e0..679dfcd8d 100644 --- a/server/src/events/mod.rs +++ b/server/src/events/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + pub(crate) mod operator; pub mod event_filter; #[macro_use] diff --git a/server/src/events/operator.rs b/server/src/events/operator.rs index c24233d90..87e16cb74 100644 --- a/server/src/events/operator.rs +++ b/server/src/events/operator.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Operator implementations for event filters use std::collections::HashSet; use std::convert::TryFrom; diff --git a/server/src/historical/mod.rs b/server/src/historical/mod.rs index 059be8db9..b0df7a6d5 100644 --- a/server/src/historical/mod.rs +++ b/server/src/historical/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ result::Result, sync::{Arc, RwLock}, diff --git a/server/src/http/mod.rs b/server/src/http/mod.rs index c6c27dfbd..b52dd5c78 100644 --- a/server/src/http/mod.rs +++ b/server/src/http/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ thread, path::PathBuf, sync::{ diff --git a/server/src/identity_token.rs b/server/src/identity_token.rs index 31b9aa43b..a28f96a69 100644 --- a/server/src/identity_token.rs +++ b/server/src/identity_token.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::*; pub(crate) const POLICY_ID_ANONYMOUS: &str = "anonymous"; diff --git a/server/src/lib.rs b/server/src/lib.rs index c4d7ee84e..1349fbed0 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! The OPC UA Server module contains the server side functionality - address space, services, //! server security, session management, local discovery server registration and subscriptions. //! diff --git a/server/src/metrics.rs b/server/src/metrics.rs index deaf6fd2a..374a0ec51 100644 --- a/server/src/metrics.rs +++ b/server/src/metrics.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides debug metric of server state that can be used by anything that wants //! to see what is happening in the server. State is updated by the server as sessions are added, removed, //! and when subscriptions / monitored items are added, removed. diff --git a/server/src/server.rs b/server/src/server.rs index 203114882..8ad210c84 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides the [`Server`] type and functionality related to it. use std::{ diff --git a/server/src/services/attribute.rs b/server/src/services/attribute.rs index 09f44eace..a5e667329 100644 --- a/server/src/services/attribute.rs +++ b/server/src/services/attribute.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ result::Result, sync::{Arc, RwLock}, diff --git a/server/src/services/audit.rs b/server/src/services/audit.rs index 65d060743..ea7de3b1c 100644 --- a/server/src/services/audit.rs +++ b/server/src/services/audit.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::sync::{Arc, RwLock}; use opcua_types::{ diff --git a/server/src/services/discovery.rs b/server/src/services/discovery.rs index 817a3ed8f..0d9ab7763 100644 --- a/server/src/services/discovery.rs +++ b/server/src/services/discovery.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::sync::{Arc, RwLock}; use opcua_core::supported_message::SupportedMessage; diff --git a/server/src/services/message_handler.rs b/server/src/services/message_handler.rs index 40c8ece42..bbb7050a7 100644 --- a/server/src/services/message_handler.rs +++ b/server/src/services/message_handler.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::sync::{Arc, RwLock}; use chrono::Utc; diff --git a/server/src/services/method.rs b/server/src/services/method.rs index 86f3ee381..3e5bf16f9 100644 --- a/server/src/services/method.rs +++ b/server/src/services/method.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::sync::{Arc, RwLock}; use opcua_types::{*, status_code::StatusCode}; diff --git a/server/src/services/mod.rs b/server/src/services/mod.rs index 8045dc005..20ac65b3d 100644 --- a/server/src/services/mod.rs +++ b/server/src/services/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::{RequestHeader, ServiceFault, status_code::StatusCode}; use opcua_core::supported_message::SupportedMessage; diff --git a/server/src/services/monitored_item.rs b/server/src/services/monitored_item.rs index 36101ad95..53a37773c 100644 --- a/server/src/services/monitored_item.rs +++ b/server/src/services/monitored_item.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::sync::{Arc, RwLock}; use opcua_core::supported_message::SupportedMessage; diff --git a/server/src/services/node_management.rs b/server/src/services/node_management.rs index 8b0f972c4..2d5156e5d 100644 --- a/server/src/services/node_management.rs +++ b/server/src/services/node_management.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{ result::Result, sync::{Arc, RwLock}, diff --git a/server/src/services/session.rs b/server/src/services/session.rs index b83e181d5..bf1a6224e 100644 --- a/server/src/services/session.rs +++ b/server/src/services/session.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::sync::{Arc, RwLock}; use opcua_core::supported_message::SupportedMessage; diff --git a/server/src/services/subscription.rs b/server/src/services/subscription.rs index 34a138823..fa31be8be 100644 --- a/server/src/services/subscription.rs +++ b/server/src/services/subscription.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::sync::{Arc, RwLock}; use opcua_core::supported_message::SupportedMessage; diff --git a/server/src/services/view.rs b/server/src/services/view.rs index a79597930..583e9dc19 100644 --- a/server/src/services/view.rs +++ b/server/src/services/view.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::result::Result; use std::sync::{Arc, Mutex, RwLock}; diff --git a/server/src/session.rs b/server/src/session.rs index 009540972..cdb862365 100644 --- a/server/src/session.rs +++ b/server/src/session.rs @@ -1,3 +1,6 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock use std::{ collections::{HashSet, VecDeque}, sync::{ diff --git a/server/src/state.rs b/server/src/state.rs index 82537e25b..7a15e96b7 100644 --- a/server/src/state.rs +++ b/server/src/state.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides server state information, such as status, configuration, running servers and so on. use std::sync::{Arc, RwLock}; diff --git a/server/src/subscriptions/mod.rs b/server/src/subscriptions/mod.rs index 6d82b48de..0631b2c79 100644 --- a/server/src/subscriptions/mod.rs +++ b/server/src/subscriptions/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use opcua_types::{ status_code::StatusCode, service_types::PublishRequest, diff --git a/server/src/subscriptions/monitored_item.rs b/server/src/subscriptions/monitored_item.rs index 49c209d41..f98086b0e 100644 --- a/server/src/subscriptions/monitored_item.rs +++ b/server/src/subscriptions/monitored_item.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::collections::{BTreeSet, VecDeque}; use std::result::Result; diff --git a/server/src/subscriptions/subscription.rs b/server/src/subscriptions/subscription.rs index b22836a08..423d9dd15 100644 --- a/server/src/subscriptions/subscription.rs +++ b/server/src/subscriptions/subscription.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::collections::{HashMap, BTreeSet, VecDeque}; use std::sync::{Arc, RwLock}; diff --git a/server/src/subscriptions/subscriptions.rs b/server/src/subscriptions/subscriptions.rs index a8ddb05cb..92f1186bc 100644 --- a/server/src/subscriptions/subscriptions.rs +++ b/server/src/subscriptions/subscriptions.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::collections::{BTreeMap, VecDeque}; use time; diff --git a/server/src/util/mod.rs b/server/src/util/mod.rs index d14868364..45dc40200 100644 --- a/server/src/util/mod.rs +++ b/server/src/util/mod.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Provides utility routines for things that might be used in a number of places elsewhere. use std::time::{Instant, Duration}; diff --git a/types/src/argument.rs b/types/src/argument.rs index dfd63d729..2459f80a4 100644 --- a/types/src/argument.rs +++ b/types/src/argument.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::io::{Read, Write}; use crate::{ diff --git a/types/src/attribute.rs b/types/src/attribute.rs index f2e424a74..19462b9df 100644 --- a/types/src/attribute.rs +++ b/types/src/attribute.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + // Attributes as defined in Part 4, Figure B.7 // Attributes sometimes required and sometimes optional diff --git a/types/src/basic_types.rs b/types/src/basic_types.rs index af9bcb0df..a5962f329 100644 --- a/types/src/basic_types.rs +++ b/types/src/basic_types.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains definitions of the simple OPC UA scalar types. use std::io::{Read, Write}; diff --git a/types/src/byte_string.rs b/types/src/byte_string.rs index b18ed156a..ba3705e08 100644 --- a/types/src/byte_string.rs +++ b/types/src/byte_string.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `ByteString`. use std::io::{Read, Write}; diff --git a/types/src/data_types.rs b/types/src/data_types.rs index 18ad3aca9..ce70ac84f 100644 --- a/types/src/data_types.rs +++ b/types/src/data_types.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use crate::date_time::DateTime; /// This primitive data type is a UInt32 that is used as an identifier, such as a handle. diff --git a/types/src/data_value.rs b/types/src/data_value.rs index 0b74b8da1..0ef09cb78 100644 --- a/types/src/data_value.rs +++ b/types/src/data_value.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `DataValue`. use std::io::{Read, Write}; diff --git a/types/src/date_time.rs b/types/src/date_time.rs index a4d9ec2fc..8f7f3c75f 100644 --- a/types/src/date_time.rs +++ b/types/src/date_time.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `DataTime`. use std::{ diff --git a/types/src/diagnostic_info.rs b/types/src/diagnostic_info.rs index e27667895..12dbf7fa2 100644 --- a/types/src/diagnostic_info.rs +++ b/types/src/diagnostic_info.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `DiagnosticInfo`. use std::io::{Read, Write}; diff --git a/types/src/encoding.rs b/types/src/encoding.rs index a7e6f38e7..2cb86e14b 100644 --- a/types/src/encoding.rs +++ b/types/src/encoding.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the `BinaryEncoder` trait and helpers for reading and writing of scalar values and //! other primitives. diff --git a/types/src/extension_object.rs b/types/src/extension_object.rs index d06bb94a0..554c3c096 100644 --- a/types/src/extension_object.rs +++ b/types/src/extension_object.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `ExtensionObject`. use std::io::{Cursor, Read, Write}; diff --git a/types/src/guid.rs b/types/src/guid.rs index 2d40ede81..104d2fa72 100644 --- a/types/src/guid.rs +++ b/types/src/guid.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `Guid`. use serde::{Deserialize, Deserializer, Serialize, Serializer}; diff --git a/types/src/lib.rs b/types/src/lib.rs index c5b881d00..d24d37034 100644 --- a/types/src/lib.rs +++ b/types/src/lib.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! The OPC UA Types module contains data types and enumerations for OPC UA. //! //! This includes: diff --git a/types/src/localized_text.rs b/types/src/localized_text.rs index ee2545381..6c1a6f9f1 100644 --- a/types/src/localized_text.rs +++ b/types/src/localized_text.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the definition of `LocalizedText`. use std::{ fmt, diff --git a/types/src/node_id.rs b/types/src/node_id.rs index 1be4bfab5..651e82a6a 100644 --- a/types/src/node_id.rs +++ b/types/src/node_id.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `NodeId` and `ExpandedNodeId`. use std::{ diff --git a/types/src/notification_message.rs b/types/src/notification_message.rs index 5e0eee179..773d85d83 100644 --- a/types/src/notification_message.rs +++ b/types/src/notification_message.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + ///! Helpers for NotificationMessage types use crate::{ diff --git a/types/src/numeric_range.rs b/types/src/numeric_range.rs index 86e8a118a..99a6798db 100644 --- a/types/src/numeric_range.rs +++ b/types/src/numeric_range.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `NumericRange`. use std::str::FromStr; diff --git a/types/src/operand.rs b/types/src/operand.rs index 99b4a626d..5f648fc9d 100644 --- a/types/src/operand.rs +++ b/types/src/operand.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::convert::TryFrom; use crate::{ diff --git a/types/src/qualified_name.rs b/types/src/qualified_name.rs index 807faf4fe..350ec3be5 100644 --- a/types/src/qualified_name.rs +++ b/types/src/qualified_name.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the definition of `QualifiedName`. use std::io::{Read, Write}; diff --git a/types/src/relative_path.rs b/types/src/relative_path.rs index 48127216c..1bc7f52e4 100644 --- a/types/src/relative_path.rs +++ b/types/src/relative_path.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains functions used for making relative paths from / to strings, as per OPC UA Part 4, Appendix A //! //! Functions are implemented on the `RelativePath` and `RelativePathElement` structs where diff --git a/types/src/request_header.rs b/types/src/request_header.rs index 6450d4892..85c6f04b1 100644 --- a/types/src/request_header.rs +++ b/types/src/request_header.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{self, io::{Read, Write}}; use crate::{ diff --git a/types/src/response_header.rs b/types/src/response_header.rs index 20dfaee2e..3a4d6ae46 100644 --- a/types/src/response_header.rs +++ b/types/src/response_header.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + use std::{self, io::{Read, Write}}; use crate::{ diff --git a/types/src/status_code.rs b/types/src/status_code.rs index 7c2f96482..8fd2eb524 100644 --- a/types/src/status_code.rs +++ b/types/src/status_code.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the hand implemented part of the StatusCode type. The other file, `status_codes.rs` contains //! the machine generated part. diff --git a/types/src/string.rs b/types/src/string.rs index 1cd7386e3..b1cf9640a 100644 --- a/types/src/string.rs +++ b/types/src/string.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `UAString`. use std::{ diff --git a/types/src/variant.rs b/types/src/variant.rs index 0692d713a..27b60f014 100644 --- a/types/src/variant.rs +++ b/types/src/variant.rs @@ -1,3 +1,7 @@ +// OPCUA for Rust +// SPDX-License-Identifier: MPL-2.0 +// Copyright (C) 2020 Adam Lock + //! Contains the implementation of `Variant`. use std::{i16, i32, i64, i8, u16, u32, u64, u8};