pub struct BundleResponse { /* private fields */ }Expand description
Framework-agnostic result of dispatching a bundle request.
ferro-bundle is a leaf crate: it does NOT depend on ferro-rs. The
framework crate wraps this into an HttpResponse at its serve boundary.
Implementations§
Source§impl BundleResponse
impl BundleResponse
Sourcepub fn status_code(&self) -> u16
pub fn status_code(&self) -> u16
HTTP status code (200, 301, 304, 404).
Sourcepub fn body_bytes(&self) -> &Bytes
pub fn body_bytes(&self) -> &Bytes
Response body bytes (empty for 301/304/404).
Auto Trait Implementations§
impl !Freeze for BundleResponse
impl RefUnwindSafe for BundleResponse
impl Send for BundleResponse
impl Sync for BundleResponse
impl Unpin for BundleResponse
impl UnsafeUnpin for BundleResponse
impl UnwindSafe for BundleResponse
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