pub struct PortMapper { /* private fields */ }Expand description
Port mapping for HTTP/HTTPS redirects
Implementations§
Source§impl PortMapper
impl PortMapper
Sourcepub fn new(http_port: u16, https_port: u16) -> PortMapper
pub fn new(http_port: u16, https_port: u16) -> PortMapper
Create a new port mapper with custom ports
Sourcepub fn get_https_port(&self) -> u16
pub fn get_https_port(&self) -> u16
Get the HTTPS port for redirect
Sourcepub fn get_http_port(&self) -> u16
pub fn get_http_port(&self) -> u16
Get the HTTP port for redirect
Trait Implementations§
Source§impl Clone for PortMapper
impl Clone for PortMapper
Source§fn clone(&self) -> PortMapper
fn clone(&self) -> PortMapper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PortMapper
impl Debug for PortMapper
Source§impl Default for PortMapper
impl Default for PortMapper
Source§fn default() -> PortMapper
fn default() -> PortMapper
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PortMapper
impl RefUnwindSafe for PortMapper
impl Send for PortMapper
impl Sync for PortMapper
impl Unpin for PortMapper
impl UnwindSafe for PortMapper
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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