pub struct SmcpServerBuilder { /* private fields */ }Expand description
SMCP 服务器构建器 SMCP server builder
Implementations§
Source§impl SmcpServerBuilder
impl SmcpServerBuilder
Sourcepub fn with_auth_provider(
self,
provider: Arc<dyn AuthenticationProvider>,
) -> Self
pub fn with_auth_provider( self, provider: Arc<dyn AuthenticationProvider>, ) -> Self
设置认证提供者 Set authentication provider
Sourcepub fn with_default_auth(
self,
admin_secret: Option<String>,
api_key_name: Option<String>,
) -> Self
pub fn with_default_auth( self, admin_secret: Option<String>, api_key_name: Option<String>, ) -> Self
设置默认认证提供者(基于 API Key) Set default authentication provider (API Key based)
Sourcepub fn with_session_manager(self, manager: Arc<SessionManager>) -> Self
pub fn with_session_manager(self, manager: Arc<SessionManager>) -> Self
设置会话管理器 Set session manager
Sourcepub fn build_layer(self) -> Result<SmcpServerLayer, HandlerError>
pub fn build_layer(self) -> Result<SmcpServerLayer, HandlerError>
构建 Socket.IO Layer Build Socket.IO layer
Trait Implementations§
Source§impl Clone for SmcpServerBuilder
impl Clone for SmcpServerBuilder
Source§fn clone(&self) -> SmcpServerBuilder
fn clone(&self) -> SmcpServerBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SmcpServerBuilder
impl !RefUnwindSafe for SmcpServerBuilder
impl Send for SmcpServerBuilder
impl Sync for SmcpServerBuilder
impl Unpin for SmcpServerBuilder
impl UnsafeUnpin for SmcpServerBuilder
impl !UnwindSafe for SmcpServerBuilder
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