pub struct TusResponse {
pub status: StatusCode,
pub headers: HeaderMap,
pub body: TusBody,
}Expand description
Outgoing response produced by the tus handler. Framework integrations convert this into their native response type.
Fields§
§status: StatusCode§headers: HeaderMap§body: TusBodyImplementations§
Source§impl TusResponse
impl TusResponse
Sourcepub fn bytes_slice(&self) -> Option<&[u8]>
pub fn bytes_slice(&self) -> Option<&[u8]>
When the body is TusBody::Bytes, returns its slice (for tests and small responses).
Auto Trait Implementations§
impl !Freeze for TusResponse
impl !RefUnwindSafe for TusResponse
impl Send for TusResponse
impl !Sync for TusResponse
impl Unpin for TusResponse
impl UnsafeUnpin for TusResponse
impl !UnwindSafe for TusResponse
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