Struct rsocket_rust_messaging::RequestSpec
source · pub struct RequestSpec { /* private fields */ }
Implementations§
source§impl RequestSpec
impl RequestSpec
pub fn metadata<T, M>(self, metadata: T, mime_type: M) -> Selfwhere T: Sized + Serialize + 'static, M: Into<MimeType>,
pub fn metadata_raw<I, M>(self, metadata: I, mime_type: M) -> Selfwhere I: Into<Vec<u8>>, M: Into<MimeType>,
pub fn data<T>(self, data: T) -> Selfwhere T: Sized + Serialize + 'static,
pub fn data_raw<I>(self, data: I) -> Selfwhere I: Into<Vec<u8>>,
pub async fn retrieve(self) -> Result<()>
pub async fn retrieve_mono(self) -> Unpacker
pub fn retrieve_flux(self) -> Unpackers
Auto Trait Implementations§
impl !RefUnwindSafe for RequestSpec
impl !Send for RequestSpec
impl !Sync for RequestSpec
impl Unpin for RequestSpec
impl !UnwindSafe for RequestSpec
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