pub struct MessageBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Message
objects.
Implementations§
Source§impl MessageBuilder
impl MessageBuilder
pub fn first_party(self, first_party: &Uri) -> Self
pub fn flags(self, flags: MessageFlags) -> Self
pub fn is_options_ping(self, is_options_ping: bool) -> Self
pub fn method(self, method: impl Into<GString>) -> Self
pub fn priority(self, priority: MessagePriority) -> Self
pub fn uri(self, uri: &Uri) -> Self
Auto Trait Implementations§
impl Freeze for MessageBuilder
impl RefUnwindSafe for MessageBuilder
impl !Send for MessageBuilder
impl !Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
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