async-opcua-server 0.18.0

OPC UA server API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{future::Future, sync::Arc};

use opcua_types::StatusCode;
use tokio_util::sync::CancellationToken;

use crate::info::ServerInfo;

use super::tcp::TcpTransport;

pub(crate) trait Connector {
    fn connect(
        self,
        info: Arc<ServerInfo>,
        token: CancellationToken,
    ) -> impl Future<Output = Result<TcpTransport, StatusCode>> + Send + Sync;
}