pub struct Worker;Expand description
Connection processing workflow
Implementations§
source§impl Worker
impl Worker
sourcepub async fn run(stream: TcpStream, data: WorkerData)
pub async fn run(stream: TcpStream, data: WorkerData)
Run main worker
Params
stream: TcpStream- Tokio tcp stream.data: WorkerData- General data for the web engine.
sourcepub fn http_code_get(code: u16) -> &'static str
pub fn http_code_get(code: u16) -> &'static str
Return a text description of the return code
sourcepub async fn call_action(data: ActionData) -> Vec<u8>
pub async fn call_action(data: ActionData) -> Vec<u8>
Auto Trait Implementations§
impl RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnwindSafe for Worker
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