pub struct IoConfigBuilder { /* private fields */ }Expand description
Builder for IoConfig.
Implementations§
Source§impl IoConfigBuilder
impl IoConfigBuilder
Sourcepub fn rs_listener_port(self, value: String) -> Self
pub fn rs_listener_port(self, value: String) -> Self
The port to use. Defaults to “0” which casues a random port to be used
Sourcepub fn js_socket_name(self, value: String) -> Self
pub fn js_socket_name(self, value: String) -> Self
The name of the JavaScript variable that holds the stream
Sourcepub fn js_after_socket_code(self, value: String) -> Self
pub fn js_after_socket_code(self, value: String) -> Self
Code run after the socket is created, which takes the socket as the argument.
Typically this would create the “output” JavaScript function that is used to send data
from JavaScript to Rust.
Trait Implementations§
Source§impl Debug for IoConfigBuilder
impl Debug for IoConfigBuilder
Auto Trait Implementations§
impl Freeze for IoConfigBuilder
impl RefUnwindSafe for IoConfigBuilder
impl Send for IoConfigBuilder
impl Sync for IoConfigBuilder
impl Unpin for IoConfigBuilder
impl UnwindSafe for IoConfigBuilder
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