pub struct TelnetServer { /* private fields */ }Expand description
Telnet 管理服务
Implementations§
Source§impl TelnetServer
impl TelnetServer
pub fn new( listen_addr: String, connections: Arc<DashMap<u64, ClientConn>>, subscriptions: Option<Arc<SubscriptionManager>>, metrics: Option<Arc<GatewayMetrics>>, shutdown_tx: Sender<bool>, ) -> Self
Sourcepub fn with_relogin_fn(self, relogin_fn: ReloginFn) -> Self
pub fn with_relogin_fn(self, relogin_fn: ReloginFn) -> Self
v1.4.97 P1-D-F: builder-style setter for relogin callback.
pub async fn run(&self) -> Result<()>
Auto Trait Implementations§
impl Freeze for TelnetServer
impl !RefUnwindSafe for TelnetServer
impl Send for TelnetServer
impl Sync for TelnetServer
impl Unpin for TelnetServer
impl UnsafeUnpin for TelnetServer
impl !UnwindSafe for TelnetServer
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