pub struct TusRequest {
pub method: Method,
pub uri: Uri,
pub upload_id: Option<String>,
pub headers: HeaderMap,
pub body: Option<Box<dyn AsyncRead + Send + Sync + Unpin>>,
}Expand description
Incoming request as seen by the tus handler. Framework integrations construct this from their native request type.
Fields§
§method: Method§uri: Uri§upload_id: Option<String>Upload ID extracted from the URL path by the framework router. Present for HEAD / PATCH / DELETE; absent for OPTIONS and POST.
headers: HeaderMap§body: Option<Box<dyn AsyncRead + Send + Sync + Unpin>>Streaming body. None for HEAD / DELETE / OPTIONS.
Auto Trait Implementations§
impl !Freeze for TusRequest
impl !RefUnwindSafe for TusRequest
impl Send for TusRequest
impl Sync for TusRequest
impl Unpin for TusRequest
impl UnsafeUnpin for TusRequest
impl !UnwindSafe for TusRequest
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