Enum gaol::profile::AddressPattern
source · pub enum AddressPattern {
All,
Tcp(u16),
LocalSocket(PathBuf),
}
Expand description
Describes a network address.
Variants§
All
All network addresses.
Tcp(u16)
TCP connections on the given port.
LocalSocket(PathBuf)
A local socket at the given path (for example, a Unix socket).
Trait Implementations§
source§impl Clone for AddressPattern
impl Clone for AddressPattern
source§fn clone(&self) -> AddressPattern
fn clone(&self) -> AddressPattern
Returns a copy 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 AddressPattern
impl RefUnwindSafe for AddressPattern
impl Send for AddressPattern
impl Sync for AddressPattern
impl Unpin for AddressPattern
impl UnwindSafe for AddressPattern
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)