#[non_exhaustive]pub enum ScopedIp {
V4(ScopedIpV4),
V6(ScopedIpV6),
}Expand description
An IP address, either IPv4 or IPv6, that supports scope_id for IPv6.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V4(ScopedIpV4)
V6(ScopedIpV6)
Implementations§
Trait Implementations§
impl Eq for ScopedIp
impl StructuralPartialEq for ScopedIp
Auto Trait Implementations§
impl Freeze for ScopedIp
impl RefUnwindSafe for ScopedIp
impl Send for ScopedIp
impl Sync for ScopedIp
impl Unpin for ScopedIp
impl UnwindSafe for ScopedIp
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