pub struct EventListenerBuilder { /* private fields */ }
Implementations§
source§impl EventListenerBuilder
impl EventListenerBuilder
pub fn type(self, type: impl Into<String>) -> EventListenerBuilder
pub fn use_capture(self, use_capture: impl Into<bool>) -> EventListenerBuilder
pub fn passive(self, passive: impl Into<bool>) -> EventListenerBuilder
pub fn once(self, once: impl Into<bool>) -> EventListenerBuilder
pub fn script_id(self, script_id: impl Into<ScriptId>) -> EventListenerBuilder
pub fn line_number(self, line_number: impl Into<i64>) -> EventListenerBuilder
pub fn column_number( self, column_number: impl Into<i64>, ) -> EventListenerBuilder
pub fn handler(self, handler: impl Into<RemoteObject>) -> EventListenerBuilder
pub fn original_handler( self, original_handler: impl Into<RemoteObject>, ) -> EventListenerBuilder
pub fn backend_node_id( self, backend_node_id: impl Into<BackendNodeId>, ) -> EventListenerBuilder
pub fn build(self) -> Result<EventListener, String>
Trait Implementations§
source§impl Clone for EventListenerBuilder
impl Clone for EventListenerBuilder
source§fn clone(&self) -> EventListenerBuilder
fn clone(&self) -> EventListenerBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for EventListenerBuilder
impl Default for EventListenerBuilder
source§fn default() -> EventListenerBuilder
fn default() -> EventListenerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventListenerBuilder
impl RefUnwindSafe for EventListenerBuilder
impl Send for EventListenerBuilder
impl Sync for EventListenerBuilder
impl Unpin for EventListenerBuilder
impl UnwindSafe for EventListenerBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)