pub struct WebService {}
Implementations§
Source§impl WebService
impl WebService
pub fn bind( conf_path: &str, handle: fn(request: JsonValue) -> (i32, &'static str, JsonValue), ) -> Result<(), Error>
pub fn stream( stream: TcpStream, acceptor: Arc<SslAcceptor>, header: Header, handle: fn(request: JsonValue) -> (i32, &'static str, JsonValue), )
pub fn http( stream: TcpStream, headers: Header, fun: fn(request: JsonValue) -> (i32, &'static str, JsonValue), )
pub fn https( stream: TcpStream, acceptor: Arc<SslAcceptor>, headers: Header, fun: fn(request: JsonValue) -> (i32, &'static str, JsonValue), )
Auto Trait Implementations§
impl Freeze for WebService
impl RefUnwindSafe for WebService
impl Send for WebService
impl Sync for WebService
impl Unpin for WebService
impl UnwindSafe for WebService
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