Struct convergence::server::BindOptions[][src]

pub struct BindOptions { /* fields omitted */ }

Controls how servers bind to local network resources.

Implementations

impl BindOptions[src]

pub fn new() -> Self[src]

Creates a default set of options listening only on the loopback address using the default Postgres port of 5432.

pub fn with_port(self, port: u16) -> Self[src]

Sets the port to be used.

pub fn with_addr(self, addr: impl Into<String>) -> Self[src]

Sets the address to be used.

pub fn use_all_interfaces(self) -> Self[src]

Configures the server to listen on all interfaces rather than any specific address.

Trait Implementations

impl Default for BindOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.