Struct chrome_remote_interface_model::runtime::PropertyDescriptorBuilder[][src]

pub struct PropertyDescriptorBuilder { /* fields omitted */ }

Implementations

impl PropertyDescriptorBuilder[src]

pub fn name(&mut self, v: String) -> &mut Self[src]

Property name or symbol description.

pub fn value(&mut self, v: RemoteObject) -> &mut Self[src]

The value associated with the property.

pub fn writable(&mut self, v: bool) -> &mut Self[src]

True if the value associated with the property may be changed (data descriptors only).

pub fn get(&mut self, v: RemoteObject) -> &mut Self[src]

A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).

pub fn set(&mut self, v: RemoteObject) -> &mut Self[src]

A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).

pub fn configurable(&mut self, v: bool) -> &mut Self[src]

True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.

pub fn enumerable(&mut self, v: bool) -> &mut Self[src]

True if this property shows up during enumeration of the properties on the corresponding object.

pub fn was_thrown(&mut self, v: bool) -> &mut Self[src]

True if the result was thrown during the evaluation.

pub fn is_own(&mut self, v: bool) -> &mut Self[src]

True if the property is owned for the object.

pub fn symbol(&mut self, v: RemoteObject) -> &mut Self[src]

Property symbol object, if the property is of the symbol type.

pub fn build(&mut self) -> Result<PropertyDescriptor, &'static str>[src]

Trait Implementations

impl Clone for PropertyDescriptorBuilder[src]

impl Debug for PropertyDescriptorBuilder[src]

impl Default for PropertyDescriptorBuilder[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.