pub struct HTTPResponseHandler { /* private fields */ }Expand description
Object the server calls through HTTPResponseHandlerVTable: the vtable pointer at offset 0, like any C++ object with virtuals.
The server keeps the pointer, so it must outlive the registration.
Implementations§
Source§impl HTTPResponseHandler
impl HTTPResponseHandler
Sourcepub const fn new(
vtable: *const HTTPResponseHandlerVTable,
) -> HTTPResponseHandler
pub const fn new( vtable: *const HTTPResponseHandlerVTable, ) -> HTTPResponseHandler
Builds a handler backed by vtable.
Trait Implementations§
impl Send for HTTPResponseHandler
impl Sync for HTTPResponseHandler
Auto Trait Implementations§
impl Freeze for HTTPResponseHandler
impl RefUnwindSafe for HTTPResponseHandler
impl Unpin for HTTPResponseHandler
impl UnsafeUnpin for HTTPResponseHandler
impl UnwindSafe for HTTPResponseHandler
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