pub struct PortR { /* private fields */ }Expand description
PortR 请求web的数据参数 包括方法 是get还是post或者其他方法.
还有get和post方法前端所返回的数据.
get方法: getg_n;
post方法: getp_n;
§Examples
Simple patterns:
fn index (r: PortR, mut h:Hshell) -> String {
let a = r.getg_n("name");
format!("返回代码{}",a);
}Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PortR
impl RefUnwindSafe for PortR
impl Send for PortR
impl Sync for PortR
impl Unpin for PortR
impl UnwindSafe for PortR
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