pub struct ServerBuilder { /* private fields */ }Expand description
Implementations§
Source§impl ServerBuilder
impl ServerBuilder
Sourcepub fn minimal(port_number: u16, certificate: Option<&[u8]>) -> Self
pub fn minimal(port_number: u16, certificate: Option<&[u8]>) -> Self
Creates builder from minimal server config.
Sourcepub fn port(self, port_number: u16) -> Self
pub fn port(self, port_number: u16) -> Self
Sets server port number.
This is a shortcut for setting the corresponding server URL opc.tcp://:<port> and thus may
overwrite any previously set server URLs from server_urls().
Sourcepub fn server_urls(self, server_urls: &[&str]) -> Self
pub fn server_urls(self, server_urls: &[&str]) -> Self
Sourcepub fn accept_all(self) -> Self
pub fn accept_all(self) -> Self
Disables client certificate checks.
Note that this disables all certificate verification of client communications. Use only when clients can be identified in some other way, or identity is not relevant.
Sourcepub fn access_control(self, access_control: impl AccessControl) -> Result<Self>
pub fn access_control(self, access_control: impl AccessControl) -> Result<Self>
Applies access control.
See AccessControl for available implementations.
§Errors
This fails when the access control instance cannot be applied.
Sourcepub fn build(self) -> (Server, ServerRunner)
pub fn build(self) -> (Server, ServerRunner)
Builds OPC UA server.
Trait Implementations§
Source§impl Debug for ServerBuilder
impl Debug for ServerBuilder
Auto Trait Implementations§
impl Freeze for ServerBuilder
impl !RefUnwindSafe for ServerBuilder
impl !Send for ServerBuilder
impl !Sync for ServerBuilder
impl Unpin for ServerBuilder
impl !UnwindSafe for ServerBuilder
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