pub struct ExchangeErrorContextBuilder { /* private fields */ }Expand description
Builder for ExchangeErrorContext.
Implementations§
Source§impl ExchangeErrorContextBuilder
impl ExchangeErrorContextBuilder
pub fn exchange<VALUE: Into<ExchangeId>>(self, value: VALUE) -> Self
pub fn operation<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn code<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn status<VALUE: Into<u16>>(self, value: VALUE) -> Self
pub fn message<VALUE: Into<String>>(self, value: VALUE) -> Self
Sourcepub fn build(
self,
) -> Result<ExchangeErrorContext, ExchangeErrorContextBuilderError>
pub fn build( self, ) -> Result<ExchangeErrorContext, ExchangeErrorContextBuilderError>
Trait Implementations§
Source§impl From<ExchangeErrorContextBuilder> for Error
impl From<ExchangeErrorContextBuilder> for Error
Source§fn from(builder: ExchangeErrorContextBuilder) -> Self
fn from(builder: ExchangeErrorContextBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExchangeErrorContextBuilder
impl RefUnwindSafe for ExchangeErrorContextBuilder
impl Send for ExchangeErrorContextBuilder
impl Sync for ExchangeErrorContextBuilder
impl Unpin for ExchangeErrorContextBuilder
impl UnsafeUnpin for ExchangeErrorContextBuilder
impl UnwindSafe for ExchangeErrorContextBuilder
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