pub struct Response(/* private fields */);
Implementations§
Source§impl Response
impl Response
pub fn err(err: i32, req: impl IntoTag) -> Self
pub fn ok(status: usize, req: impl IntoTag) -> Self
pub fn ready_ok(status: usize, req: impl IntoTag) -> Poll<Self>
pub fn ready_err(err: i32, req: impl IntoTag) -> Poll<Self>
pub fn new(status: Result<usize>, req: impl IntoTag) -> Self
pub fn open_dup_like(res: Result<OpenResult>, req: impl IntoTag) -> Response
pub fn return_external_fd(fd: usize, req: impl IntoTag) -> Self
pub fn with_extra(self, extra: [u8; 3]) -> Self
pub fn post_fevent(id: usize, flags: usize) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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