pub struct Server { /* private fields */ }Expand description
State structure for the server.
Implementations§
Source§impl Server
impl Server
Sourcepub fn new(port_range: RangeInclusive<u16>, secret: Option<&str>) -> Self
pub fn new(port_range: RangeInclusive<u16>, secret: Option<&str>) -> Self
Create a new server with a specified minimum port number.
Sourcepub fn set_bind_addr(&mut self, bind_addr: IpAddr)
pub fn set_bind_addr(&mut self, bind_addr: IpAddr)
Set the IP address where tunnels will listen on.
Sourcepub fn set_bind_tunnels(&mut self, bind_tunnels: IpAddr)
pub fn set_bind_tunnels(&mut self, bind_tunnels: IpAddr)
Set the IP address where the control server will bind to.
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
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