pub struct ServerIdent { /* private fields */ }Expand description
Identifer for a server
Implementations§
Source§impl ServerIdent
impl ServerIdent
Sourcepub fn new(
context: Arc<ServiceContext>,
svr_cfg: ServerInstanceConfig,
max_server_rtt: Duration,
check_window: Duration,
) -> Self
pub fn new( context: Arc<ServiceContext>, svr_cfg: ServerInstanceConfig, max_server_rtt: Duration, check_window: Duration, ) -> Self
Create a ServerIdent
pub fn connect_opts_ref(&self) -> &ConnectOpts
pub fn server_config(&self) -> &ServerConfig
pub fn server_config_mut(&mut self) -> &mut ServerConfig
pub fn server_instance_config(&self) -> &ServerInstanceConfig
pub fn tcp_score(&self) -> &ServerScore
pub fn udp_score(&self) -> &ServerScore
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerIdent
impl !RefUnwindSafe for ServerIdent
impl Send for ServerIdent
impl Sync for ServerIdent
impl Unpin for ServerIdent
impl !UnwindSafe for ServerIdent
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