Struct poem::RouteScheme
source · [−]pub struct RouteScheme { /* private fields */ }
Expand description
Implementations
sourceimpl RouteScheme
impl RouteScheme
sourcepub fn https<E>(self, ep: E) -> Selfwhere
E: IntoEndpoint,
E::Endpoint: 'static,
pub fn https<E>(self, ep: E) -> Selfwhere
E: IntoEndpoint,
E::Endpoint: 'static,
Sets the endpoint for HTTPS
.
sourcepub fn http<E>(self, ep: E) -> Selfwhere
E: IntoEndpoint,
E::Endpoint: 'static,
pub fn http<E>(self, ep: E) -> Selfwhere
E: IntoEndpoint,
E::Endpoint: 'static,
Sets the endpoint for HTTP
.
sourcepub fn custom<E>(self, scheme: Scheme, ep: E) -> Selfwhere
E: IntoEndpoint,
E::Endpoint: 'static,
pub fn custom<E>(self, scheme: Scheme, ep: E) -> Selfwhere
E: IntoEndpoint,
E::Endpoint: 'static,
Sets the endpoint for the specified scheme
.
sourcepub fn fallback<E>(self, ep: E) -> Selfwhere
E: IntoEndpoint,
E::Endpoint: 'static,
pub fn fallback<E>(self, ep: E) -> Selfwhere
E: IntoEndpoint,
E::Endpoint: 'static,
Sets the endpoint for the fallback schemes.
All unmatched schemes will use this endpoint.
Trait Implementations
sourceimpl Default for RouteScheme
impl Default for RouteScheme
sourcefn default() -> RouteScheme
fn default() -> RouteScheme
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RouteScheme
impl Send for RouteScheme
impl Sync for RouteScheme
impl Unpin for RouteScheme
impl !UnwindSafe for RouteScheme
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more