pub struct Res {
pub outcome: String,
/* private fields */
}
Fields§
§outcome: String
Implementations§
Source§impl<'a> Res
impl<'a> Res
pub fn new() -> Res
pub fn status(self, status: usize) -> Res
pub fn set( &'a mut self, header_key: &'a str, header_value: &'a str, ) -> &'a mut Res
pub fn get(&self, header_key: &str) -> Option<&str>
pub fn send(self, outcome: &str) -> Res
pub async fn send_outcome(self, stream: WriteHalf<'_>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Res
impl RefUnwindSafe for Res
impl Send for Res
impl Sync for Res
impl Unpin for Res
impl UnwindSafe for Res
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