pub struct Manager { /* private fields */ }
Expand description
Manager server
Implementations
sourceimpl Manager
impl Manager
sourcepub fn new(svr_cfg: ManagerConfig) -> Manager
pub fn new(svr_cfg: ManagerConfig) -> Manager
Create a new manager server from configuration
sourcepub fn set_connect_opts(&mut self, opts: ConnectOpts)
pub fn set_connect_opts(&mut self, opts: ConnectOpts)
Set ConnectOpts
sourcepub fn set_accept_opts(&mut self, opts: AcceptOpts)
pub fn set_accept_opts(&mut self, opts: AcceptOpts)
Set AcceptOpts
sourcepub fn set_udp_expiry_duration(&mut self, d: Duration)
pub fn set_udp_expiry_duration(&mut self, d: Duration)
Set UDP association’s expiry duration
sourcepub fn set_udp_capacity(&mut self, c: usize)
pub fn set_udp_capacity(&mut self, c: usize)
Set total UDP associations to be kept in one server
sourcepub fn config(&self) -> &ManagerConfig
pub fn config(&self) -> &ManagerConfig
Get the manager’s configuration
sourcepub fn set_dns_resolver(&mut self, resolver: Arc<DnsResolver>)
pub fn set_dns_resolver(&mut self, resolver: Arc<DnsResolver>)
Get customized DNS resolver
sourcepub fn set_acl(&mut self, acl: Arc<AccessControl>)
pub fn set_acl(&mut self, acl: Arc<AccessControl>)
Set access control list
sourcepub fn set_ipv6_first(&mut self, ipv6_first: bool)
pub fn set_ipv6_first(&mut self, ipv6_first: bool)
Try to connect IPv6 addresses first if hostname could be resolved to both IPv4 and IPv6
sourcepub fn set_security_config(&mut self, security: SecurityConfig)
pub fn set_security_config(&mut self, security: SecurityConfig)
Set security config
pub async fn add_server(&self, svr_cfg: ServerConfig)
Auto Trait Implementations
impl !RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more