Struct v8::NamedPropertyHandlerConfiguration
source · pub struct NamedPropertyHandlerConfiguration<'s> { /* private fields */ }
Implementations§
source§impl<'s> NamedPropertyHandlerConfiguration<'s>
impl<'s> NamedPropertyHandlerConfiguration<'s>
pub fn new() -> Self
pub fn is_some(&self) -> bool
pub fn getter( self, getter: impl MapFnTo<GenericNamedPropertyGetterCallback<'s>> ) -> Self
pub fn getter_raw(self, getter: GenericNamedPropertyGetterCallback<'s>) -> Self
pub fn setter( self, setter: impl MapFnTo<GenericNamedPropertySetterCallback<'s>> ) -> Self
pub fn setter_raw(self, setter: GenericNamedPropertySetterCallback<'s>) -> Self
pub fn query( self, query: impl MapFnTo<GenericNamedPropertyQueryCallback<'s>> ) -> Self
pub fn query_raw(self, query: GenericNamedPropertyQueryCallback<'s>) -> Self
pub fn deleter( self, deleter: impl MapFnTo<GenericNamedPropertyDeleterCallback<'s>> ) -> Self
pub fn deleter_raw( self, deleter: GenericNamedPropertyDeleterCallback<'s> ) -> Self
pub fn enumerator( self, enumerator: impl MapFnTo<GenericNamedPropertyEnumeratorCallback<'s>> ) -> Self
pub fn enumerator_raw( self, enumerator: GenericNamedPropertyEnumeratorCallback<'s> ) -> Self
pub fn definer( self, definer: impl MapFnTo<GenericNamedPropertyDefinerCallback<'s>> ) -> Self
pub fn definer_raw( self, definer: GenericNamedPropertyDefinerCallback<'s> ) -> Self
pub fn descriptor( self, descriptor: impl MapFnTo<GenericNamedPropertyDescriptorCallback<'s>> ) -> Self
pub fn descriptor_raw( self, descriptor: GenericNamedPropertyDescriptorCallback<'s> ) -> Self
sourcepub fn data(self, data: Local<'s, Value>) -> Self
pub fn data(self, data: Local<'s, Value>) -> Self
Set the associated data. The default is no associated data.
sourcepub fn flags(self, flags: PropertyHandlerFlags) -> Self
pub fn flags(self, flags: PropertyHandlerFlags) -> Self
Set the property handler flags. The default is PropertyHandlerFlags::NONE.
Trait Implementations§
source§impl<'s> Default for NamedPropertyHandlerConfiguration<'s>
impl<'s> Default for NamedPropertyHandlerConfiguration<'s>
source§fn default() -> NamedPropertyHandlerConfiguration<'s>
fn default() -> NamedPropertyHandlerConfiguration<'s>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'s> RefUnwindSafe for NamedPropertyHandlerConfiguration<'s>
impl<'s> !Send for NamedPropertyHandlerConfiguration<'s>
impl<'s> !Sync for NamedPropertyHandlerConfiguration<'s>
impl<'s> Unpin for NamedPropertyHandlerConfiguration<'s>
impl<'s> UnwindSafe for NamedPropertyHandlerConfiguration<'s>
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