Struct zone::DeviceScope[][src]

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

Generated scope for the Device 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_device.

Implementations

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

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

Trait Implementations

impl<'a> Drop for DeviceScope<'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 DeviceScope<'a>

impl<'a> Send for DeviceScope<'a>

impl<'a> Sync for DeviceScope<'a>

impl<'a> Unpin for DeviceScope<'a>

impl<'a> !UnwindSafe for DeviceScope<'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.