pub struct SocketServerConfig {
pub bind_addr: String,
pub cors_origin: Option<String>,
}Expand description
Where the Socket.IO server listens, and who may connect.
Fields§
§bind_addr: String§cors_origin: Option<String>Access-Control-Allow-Origin. None sends no CORS headers,
which is right for a same-origin deployment and wrong for a
browser client on another host — so it is a decision the app
makes rather than a permissive default.
Implementations§
Trait Implementations§
Source§impl Clone for SocketServerConfig
impl Clone for SocketServerConfig
Source§impl Debug for SocketServerConfig
impl Debug for SocketServerConfig
Auto Trait Implementations§
impl Freeze for SocketServerConfig
impl RefUnwindSafe for SocketServerConfig
impl Send for SocketServerConfig
impl Sync for SocketServerConfig
impl Unpin for SocketServerConfig
impl UnsafeUnpin for SocketServerConfig
impl UnwindSafe for SocketServerConfig
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