pub struct WsOptions {
pub bind: SocketAddr,
pub allowed_peers: Vec<IpAddr>,
pub allow_any: bool,
pub session_id: Option<String>,
pub marker_stream_name: String,
}Expand description
Configuration for WsBridge::start.
Fields§
§bind: SocketAddrLocal address and port to bind (default 127.0.0.1:8765).
allowed_peers: Vec<IpAddr>Additional non-loopback peer IP addresses allowed to connect.
Loopback (127.0.0.1, ::1) is always allowed.
allow_any: boolWhen true, accept connections from any IP address. Default false.
session_id: Option<String>Optional LSL session identifier to discover and publish markers under.
None uses the active configuration (lab.SessionID).
marker_stream_name: StringDefault LSL outlet name for markers sent by browser pages without an
explicit stream field.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for WsOptions
impl Freeze for WsOptions
impl Move 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