pub struct RestServer { /* private fields */ }Implementations§
Source§impl RestServer
impl RestServer
pub fn new( ip: IpAddr, port: u16, call_back: RestCallBack, ) -> Result<RestServer, RESULT>
pub fn run(self) -> JoinHandle<()>
pub fn terminate(&mut self)
Auto Trait Implementations§
impl Freeze for RestServer
impl RefUnwindSafe for RestServer
impl Send for RestServer
impl Sync for RestServer
impl Unpin for RestServer
impl UnwindSafe for RestServer
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