pub struct ServeRequest<'a> { /* private fields */ }Expand description
A server request to be handled by serve_request.
Implementations§
Source§impl<'a> ServeRequest<'a>
impl<'a> ServeRequest<'a>
Sourcepub fn new(
render_options: RenderOptions<'a>,
accept_json: bool,
inventory_hex: &'a str,
) -> Self
pub fn new( render_options: RenderOptions<'a>, accept_json: bool, inventory_hex: &'a str, ) -> Self
Create a server request from the complete per-render configuration.
Set accept_json when the request accepts a partial-navigation response.
inventory_hex is the client’s X-WebUI-Inventory value, or an empty
string when the header is absent.
Auto Trait Implementations§
impl<'a> Freeze for ServeRequest<'a>
impl<'a> RefUnwindSafe for ServeRequest<'a>
impl<'a> Send for ServeRequest<'a>
impl<'a> Sync for ServeRequest<'a>
impl<'a> Unpin for ServeRequest<'a>
impl<'a> UnsafeUnpin for ServeRequest<'a>
impl<'a> UnwindSafe for ServeRequest<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more