pub struct RawMessageBuilder<T = WithHeaders> { /* private fields */ }
Implementations§
Source§impl<T> RawMessageBuilder<T>
impl<T> RawMessageBuilder<T>
Sourcepub fn last_by_subject<S: Into<String>>(self, subject: S) -> Self
pub fn last_by_subject<S: Into<String>>(self, subject: S) -> Self
Sets the last_by_subject for the raw message request.
Sourcepub fn next_by_subject<S: Into<String>>(self, subject: S) -> Self
pub fn next_by_subject<S: Into<String>>(self, subject: S) -> Self
Sets the next_by_subject for the raw message request.
Source§impl RawMessageBuilder<WithHeaders>
impl RawMessageBuilder<WithHeaders>
Sourcepub async fn send(self) -> Result<StreamMessage, RawMessageError>
pub async fn send(self) -> Result<StreamMessage, RawMessageError>
Sends the raw message request and returns a StreamMessage with headers.
Source§impl RawMessageBuilder<WithoutHeaders>
impl RawMessageBuilder<WithoutHeaders>
Sourcepub async fn send(self) -> Result<StreamValue, RawMessageError>
pub async fn send(self) -> Result<StreamValue, RawMessageError>
Sends the raw message request and returns only the payload as StreamValue.
Auto Trait Implementations§
impl<T> Freeze for RawMessageBuilder<T>
impl<T = WithHeaders> !RefUnwindSafe for RawMessageBuilder<T>
impl<T> Send for RawMessageBuilder<T>where
T: Send,
impl<T> Sync for RawMessageBuilder<T>where
T: Sync,
impl<T> Unpin for RawMessageBuilder<T>where
T: Unpin,
impl<T = WithHeaders> !UnwindSafe for RawMessageBuilder<T>
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