#[non_exhaustive]pub enum Remote<'a> {
Any,
LocalNet,
Multicast,
Broadcast,
Bonjour,
DnsServers,
Bpf,
Unknown(&'a str),
}
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.
Trait Implementations§
source§impl<'de, 'a> Deserialize<'de> for Remote<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for Remote<'a>where 'de: 'a,
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq for Remote<'a>
impl<'a> PartialEq for Remote<'a>
impl<'a> StructuralPartialEq for Remote<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Remote<'a>
impl<'a> Send for Remote<'a>
impl<'a> Sync for Remote<'a>
impl<'a> Unpin for Remote<'a>
impl<'a> UnwindSafe for Remote<'a>
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