Struct zone::NetScope[][src]

pub struct NetScope<'a> { /* fields omitted */ }

Generated scope for the Net resource.

This object represents the resource scope for a zone configuration, and automatically closes that scope when dropped.

To construct this object, refer to Config::add_net.

Implementations

impl<'a> NetScope<'a>[src]

pub fn set_physical(&mut self, value: impl Into<String>) -> &mut Self[src]

impl<'a> NetScope<'a>[src]

pub fn set_address(&mut self, value: impl Into<Option<String>>) -> &mut Self[src]

impl<'a> NetScope<'a>[src]

pub fn set_allowed_address(
    &mut self,
    value: impl Into<Option<String>>
) -> &mut Self
[src]

impl<'a> NetScope<'a>[src]

pub fn set_default_router(
    &mut self,
    value: impl Into<Option<String>>
) -> &mut Self
[src]

Trait Implementations

impl<'a> Drop for NetScope<'a>[src]

fn drop(&mut self)[src]

Emits an “end” token, signifing the end of a resource scope.

Auto Trait Implementations

impl<'a> RefUnwindSafe for NetScope<'a>

impl<'a> Send for NetScope<'a>

impl<'a> Sync for NetScope<'a>

impl<'a> Unpin for NetScope<'a>

impl<'a> !UnwindSafe for NetScope<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.