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