pub struct EasySocketServer { /* private fields */ }
Implementations§
Source§impl EasySocketServer
impl EasySocketServer
pub fn new() -> Self
pub fn on<F>(&self, event: &str, callback: F)
pub fn listen_tcp(&self, address: &str) -> Result<()>
pub fn listen_udp(&self, address: &str) -> Result<()>
pub async fn listen_http(&self, address: &str) -> Result<(), Box<dyn Error>>
pub fn listen_ws(&self, address: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for EasySocketServer
impl RefUnwindSafe for EasySocketServer
impl Send for EasySocketServer
impl Sync for EasySocketServer
impl Unpin for EasySocketServer
impl UnwindSafe for EasySocketServer
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