pub struct DesktopProtocolResponse {
pub status: u16,
pub content_type: String,
pub body: DesktopResponseContent,
}Expand description
Runtime-neutral representation of a custom-protocol response.
Fields§
§status: u16HTTP status code.
content_type: StringContent type header value.
body: DesktopResponseContentOwned bytes or an already-opened file for bounded streaming delivery.
Implementations§
Source§impl DesktopProtocolResponse
impl DesktopProtocolResponse
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DesktopProtocolResponse
impl !UnwindSafe for DesktopProtocolResponse
impl Freeze for DesktopProtocolResponse
impl Send for DesktopProtocolResponse
impl Sync for DesktopProtocolResponse
impl Unpin for DesktopProtocolResponse
impl UnsafeUnpin for DesktopProtocolResponse
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