pub struct SocketChannelConfig {
pub namespace: String,
pub bind_addr: SocketAddr,
pub cors_origin: Option<String>,
}Expand description
Bind address + namespace + CORS for the socket.io server.
Fields§
§namespace: Stringe.g. "/chat" — socketioxide namespaces are path-like.
bind_addr: SocketAddre.g. "0.0.0.0:3001".
cors_origin: Option<String>Some("*") for permissive, None for default (no CORS layer).
Implementations§
Trait Implementations§
Source§impl Clone for SocketChannelConfig
impl Clone for SocketChannelConfig
Auto Trait Implementations§
impl Freeze for SocketChannelConfig
impl RefUnwindSafe for SocketChannelConfig
impl Send for SocketChannelConfig
impl Sync for SocketChannelConfig
impl Unpin for SocketChannelConfig
impl UnsafeUnpin for SocketChannelConfig
impl UnwindSafe for SocketChannelConfig
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