pub struct Server { /* private fields */ }
Expand description
jsonrpc http server instance
Implementations§
Source§impl Server
impl Server
Sourcepub fn address(&self) -> &SocketAddr
pub fn address(&self) -> &SocketAddr
Returns address of this server
Sourcepub fn close_handle(&self) -> CloseHandle
pub fn close_handle(&self) -> CloseHandle
Get a handle that allows us to close the server from a different thread and/or while the
server is wait()
ing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
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