pub struct N3 { /* private fields */ }Expand description
Reverse proxy server.
Implementations§
Source§impl N3
impl N3
Sourcepub fn new(redirect_to: SocketAddr) -> Self
pub fn new(redirect_to: SocketAddr) -> Self
Create a new N3 configuration with redirect_to target.
pub fn quic_server<F>(self, f: F) -> Self
Sourcepub async fn bind<S>(self, laddrs: S) -> Result<()>where
S: ToSocketAddrs,
pub async fn bind<S>(self, laddrs: S) -> Result<()>where
S: ToSocketAddrs,
Bind n3 to laddrs and run it.
Auto Trait Implementations§
impl !RefUnwindSafe for N3
impl !UnwindSafe for N3
impl Freeze for N3
impl Send for N3
impl Sync for N3
impl Unpin for N3
impl UnsafeUnpin for N3
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