Enum tiny_web::sys::init::AcceptAddr
source · pub enum AcceptAddr {
Any,
IpAddr(IpAddr),
UDS,
}
Expand description
Responsible for the IP address that should be accepted.
Values
Any
- Accepts any IP address;IpAddr: IpAddr
- Accepts a specific IP address;UDS
- Accepts only from Unix Domain Socket.
Variants§
Any
Accepts any IP address.
IpAddr(IpAddr)
Accepts a specific IP address;
UDS
Accepts only from Unix Domain Socket.
Trait Implementations§
source§impl Clone for AcceptAddr
impl Clone for AcceptAddr
source§fn clone(&self) -> AcceptAddr
fn clone(&self) -> AcceptAddr
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 RefUnwindSafe for AcceptAddr
impl Send for AcceptAddr
impl Sync for AcceptAddr
impl Unpin for AcceptAddr
impl UnwindSafe for AcceptAddr
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