#[non_exhaustive]pub struct RestrictedAreaConfig {
pub area_hint: Option<RestrictedArea>,
pub proxies: Vec<RestrictedAreaProxy>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.area_hint: Option<RestrictedArea>§proxies: Vec<RestrictedAreaProxy>Implementations§
Source§impl RestrictedAreaConfig
impl RestrictedAreaConfig
pub fn new( area_hint: Option<RestrictedArea>, proxies: impl IntoIterator<Item = RestrictedAreaProxy>, ) -> Self
pub fn with_area_hint(self, area_hint: RestrictedArea) -> Self
pub fn with_proxy(self, proxy: RestrictedAreaProxy) -> Self
pub fn with_proxies( self, proxies: impl IntoIterator<Item = RestrictedAreaProxy>, ) -> Self
pub fn ordered_proxies(&self) -> Vec<RestrictedAreaProxy>
Trait Implementations§
Source§impl Clone for RestrictedAreaConfig
impl Clone for RestrictedAreaConfig
Source§fn clone(&self) -> RestrictedAreaConfig
fn clone(&self) -> RestrictedAreaConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestrictedAreaConfig
impl Debug for RestrictedAreaConfig
Source§impl Default for RestrictedAreaConfig
impl Default for RestrictedAreaConfig
Source§fn default() -> RestrictedAreaConfig
fn default() -> RestrictedAreaConfig
Returns the “default value” for a type. Read more
impl Eq for RestrictedAreaConfig
Source§impl PartialEq for RestrictedAreaConfig
impl PartialEq for RestrictedAreaConfig
Source§fn eq(&self, other: &RestrictedAreaConfig) -> bool
fn eq(&self, other: &RestrictedAreaConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RestrictedAreaConfig
Auto Trait Implementations§
impl Freeze for RestrictedAreaConfig
impl RefUnwindSafe for RestrictedAreaConfig
impl Send for RestrictedAreaConfig
impl Sync for RestrictedAreaConfig
impl Unpin for RestrictedAreaConfig
impl UnsafeUnpin for RestrictedAreaConfig
impl UnwindSafe for RestrictedAreaConfig
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