pub struct Request { /* private fields */ }Implementations§
source§impl Request
impl Request
pub async fn response<T: Serialize>( self, value: Result<&T, &T> ) -> Result<(), SendError>
sourcepub async fn abort(self) -> Result<(), SendError>
pub async fn abort(self) -> Result<(), SendError>
Explicitly abort the request. This is useful when you want to cancel the request
sourcepub async fn error_notify_handler(self) -> Result<(), SendError>
pub async fn error_notify_handler(self) -> Result<(), SendError>
Notify handler received notify handler …
sourcepub async fn error_parse_failed<T>(self) -> Result<(), SendError>
pub async fn error_parse_failed<T>(self) -> Result<(), SendError>
Response with ‘parse failed’ predefined error type.
sourcepub async fn error_internal(
self,
errc: i32,
detail: impl Into<Option<String>>
) -> Result<(), SendError>
pub async fn error_internal( self, errc: i32, detail: impl Into<Option<String>> ) -> Result<(), SendError>
Response ‘internal’ error with given error code.
pub fn response_deferred<T: Serialize>( self, value: Result<&T, &T> ) -> Result<(), SendError>
pub fn abort_deferred(self) -> Result<(), SendError>
pub fn error_notify_handler_deferred(self) -> Result<(), SendError>
pub fn error_parse_failed_deferred<T>(self) -> Result<(), SendError>
pub fn error_internal_deferred( self, errc: i32, detail: impl Into<Option<String>> ) -> Result<(), SendError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl !UnwindSafe for Request
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