pub struct WsStartConfig {
pub listen_url: String,
pub connect_url: String,
pub env: HashMap<String, String>,
pub reuse_existing: bool,
}Fields§
§listen_url: String§connect_url: String§env: HashMap<String, String>§reuse_existing: boolImplementations§
Source§impl WsStartConfig
impl WsStartConfig
pub fn new( listen_url: impl Into<String>, connect_url: impl Into<String>, env: HashMap<String, String>, ) -> Self
pub fn with_listen_url(self, listen_url: impl Into<String>) -> Self
pub fn with_connect_url(self, connect_url: impl Into<String>) -> Self
pub fn with_env(self, env: HashMap<String, String>) -> Self
pub fn with_reuse_existing(self, reuse_existing: bool) -> Self
Trait Implementations§
Source§impl Clone for WsStartConfig
impl Clone for WsStartConfig
Source§fn clone(&self) -> WsStartConfig
fn clone(&self) -> WsStartConfig
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 moreSource§impl Debug for WsStartConfig
impl Debug for WsStartConfig
Auto Trait Implementations§
impl Freeze for WsStartConfig
impl RefUnwindSafe for WsStartConfig
impl Send for WsStartConfig
impl Sync for WsStartConfig
impl Unpin for WsStartConfig
impl UnsafeUnpin for WsStartConfig
impl UnwindSafe for WsStartConfig
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