pub struct Bundle { /* private fields */ }Expand description
Represents a WebBundle.
Implementations
sourceimpl Bundle
impl Bundle
sourcepub fn primary_url(&self) -> &Option<Uri>
pub fn primary_url(&self) -> &Option<Uri>
Gets the primary url.
sourcepub fn from_bytes(bytes: impl AsRef<[u8]>) -> Result<Bundle>
pub fn from_bytes(bytes: impl AsRef<[u8]>) -> Result<Bundle>
Parses the given bytes and returns the parsed Bundle.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl !UnwindSafe for Bundle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more