pub enum PortSelection {
Fixed(u16),
Dynamic,
Zero,
}Expand description
Configuration for port selection behavior
Variants§
Fixed(u16)
Use the specified port number
Dynamic
Let the OS assign an available port
Zero
Use port 0 (not recommended, may cause bitcoind to fail)
Trait Implementations§
Source§impl Clone for PortSelection
impl Clone for PortSelection
Source§fn clone(&self) -> PortSelection
fn clone(&self) -> PortSelection
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 moreAuto Trait Implementations§
impl Freeze for PortSelection
impl RefUnwindSafe for PortSelection
impl Send for PortSelection
impl Sync for PortSelection
impl Unpin for PortSelection
impl UnwindSafe for PortSelection
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