pub struct WsOptions {
pub max_message_size: usize,
pub allowed_origins: Vec<String>,
}Expand description
Per-endpoint settings
Fields§
§max_message_size: usizeLargest accepted message and frame in bytes (default 1 MiB)
allowed_origins: Vec<String>Extra Origin values (e.g. https://app.example.com) that may connect
besides the host serving the endpoint
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsOptions
impl RefUnwindSafe for WsOptions
impl Send for WsOptions
impl Sync for WsOptions
impl Unpin for WsOptions
impl UnsafeUnpin for WsOptions
impl UnwindSafe for WsOptions
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