pub struct Meta<Req, Resp> { /* private fields */ }Implementations§
Source§impl<Req, Resp> Meta<Req, Resp>
impl<Req, Resp> Meta<Req, Resp>
pub fn new(req: Req, heads: HashMap<String, String>) -> Self
pub fn req(&self) -> DceResult<&Req>
pub fn req_mut(&mut self) -> &mut Option<Req>
pub fn resp_mut(&mut self) -> &mut Option<Response<Resp>>
pub fn heads(&self) -> &HashMap<String, String>
pub fn resp_heads(&self) -> &HashMap<String, String>
pub fn resp_heads_mut(&mut self) -> &mut HashMap<String, String>
Trait Implementations§
Auto Trait Implementations§
impl<Req, Resp> !Freeze for Meta<Req, Resp>
impl<Req, Resp> RefUnwindSafe for Meta<Req, Resp>where
Req: RefUnwindSafe,
Resp: RefUnwindSafe,
impl<Req, Resp> Send for Meta<Req, Resp>
impl<Req, Resp> Sync for Meta<Req, Resp>
impl<Req, Resp> Unpin for Meta<Req, Resp>
impl<Req, Resp> UnwindSafe for Meta<Req, Resp>where
Req: UnwindSafe,
Resp: UnwindSafe,
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