pub enum Addr {
SocketAddr(SocketAddr),
UDS(String),
}
Expand description
Responsible for the IP address.
Values
SocketAddr
- Accepts any socket address;UDS: String
- Accepts only from Unix Domain Socket.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Addr
impl Send for Addr
impl Sync for Addr
impl Unpin for Addr
impl UnwindSafe for Addr
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