pub struct Bundle { /* private fields */ }Expand description
Represents a WebBundle.
Implementations§
Source§impl 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 !Freeze for Bundle
impl !RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl !UnwindSafe for Bundle
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