pub struct WebSocketGatewayInitContext {
pub gateway_path: String,
pub namespace: Option<String>,
pub module_name: Option<String>,
pub events: Vec<String>,
/* private fields */
}Expand description
Context passed to WebSocket gateway initialization hooks.
Fields§
§gateway_path: String§namespace: Option<String>§module_name: Option<String>§events: Vec<String>Implementations§
Source§impl WebSocketGatewayInitContext
impl WebSocketGatewayInitContext
pub fn server(&self) -> WebSocketGatewayServer
Trait Implementations§
Source§impl Clone for WebSocketGatewayInitContext
impl Clone for WebSocketGatewayInitContext
Source§fn clone(&self) -> WebSocketGatewayInitContext
fn clone(&self) -> WebSocketGatewayInitContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for WebSocketGatewayInitContext
impl !UnwindSafe for WebSocketGatewayInitContext
impl Freeze for WebSocketGatewayInitContext
impl Send for WebSocketGatewayInitContext
impl Sync for WebSocketGatewayInitContext
impl Unpin for WebSocketGatewayInitContext
impl UnsafeUnpin for WebSocketGatewayInitContext
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