Struct webkit2gtk::builders::UserMessageBuilder
source · [−]pub struct UserMessageBuilder { /* private fields */ }
Available on crate feature
v2_28
only.Expand description
A builder-pattern type to construct UserMessage
objects.
Implementations
sourceimpl UserMessageBuilder
impl UserMessageBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new UserMessageBuilder
.
sourcepub fn build(self) -> UserMessage
pub fn build(self) -> UserMessage
Build the UserMessage
.
sourcepub fn fd_list(self, fd_list: &impl IsA<UnixFDList>) -> Self
pub fn fd_list(self, fd_list: &impl IsA<UnixFDList>) -> Self
The UNIX file descriptors of the user message.
sourcepub fn parameters(self, parameters: &Variant) -> Self
pub fn parameters(self, parameters: &Variant) -> Self
The parameters of the user message as a glib::Variant
, or None
if the message doesn’t include parameters. Note that only complete types are
allowed.
Trait Implementations
sourceimpl Clone for UserMessageBuilder
impl Clone for UserMessageBuilder
sourcefn clone(&self) -> UserMessageBuilder
fn clone(&self) -> UserMessageBuilder
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for UserMessageBuilder
impl Default for UserMessageBuilder
sourcefn default() -> UserMessageBuilder
fn default() -> UserMessageBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for UserMessageBuilder
impl !Send for UserMessageBuilder
impl !Sync for UserMessageBuilder
impl Unpin for UserMessageBuilder
impl UnwindSafe for UserMessageBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more