Struct convergence::server::BindOptions [−][src]
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]
fn default() -> BindOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for BindOptions
impl Send for BindOptions
impl Sync for BindOptions
impl Unpin for BindOptions
impl UnwindSafe for BindOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,