Struct cyfs_lib::WebSocketServer
source · [−]pub struct WebSocketServer { /* private fields */ }
Implementations
sourceimpl WebSocketServer
impl WebSocketServer
pub fn new(addr: SocketAddr, handler: Box<dyn WebSocketRequestHandler>) -> Self
pub fn get_addr(&self) -> SocketAddr
pub async fn start(&self) -> BuckyResult<()>
pub async fn stop(&self)
Trait Implementations
sourceimpl Clone for WebSocketServer
impl Clone for WebSocketServer
sourcefn clone(&self) -> WebSocketServer
fn clone(&self) -> WebSocketServer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for WebSocketServer
impl Send for WebSocketServer
impl Sync for WebSocketServer
impl Unpin for WebSocketServer
impl UnwindSafe for WebSocketServer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more