pub struct ErrorFrameBuilder { /* private fields */ }Expand description
This frame has required headers and optional headers message.
Implementations§
Source§impl ErrorFrameBuilder
impl ErrorFrameBuilder
Sourcepub fn message(
self,
new_val: <MessageValue<'_> as HeaderValue>::OwnedValue,
) -> ErrorFrameBuilder
pub fn message( self, new_val: <MessageValue<'_> as HeaderValue>::OwnedValue, ) -> ErrorFrameBuilder
The value of the message header.
Sourcepub fn add_custom_header(self, name: String, value: String) -> ErrorFrameBuilder
pub fn add_custom_header(self, name: String, value: String) -> ErrorFrameBuilder
Useless doc: cus.
Sourcepub fn body(self, new_value: Vec<u8>) -> ErrorFrameBuilder
pub fn body(self, new_value: Vec<u8>) -> ErrorFrameBuilder
Useless doc: body.
pub fn new() -> ErrorFrameBuilder
pub fn build(self) -> ErrorFrame<'static>
Auto Trait Implementations§
impl Freeze for ErrorFrameBuilder
impl RefUnwindSafe for ErrorFrameBuilder
impl Send for ErrorFrameBuilder
impl Sync for ErrorFrameBuilder
impl Unpin for ErrorFrameBuilder
impl UnsafeUnpin for ErrorFrameBuilder
impl UnwindSafe for ErrorFrameBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more