pub struct BootUrl { /* private fields */ }
Expand description
Decoded representation of a fuchsia-boot URL.
fuchsia-boot:///path/to#path/to/resource
Implementations§
Source§impl BootUrl
impl BootUrl
pub fn parse(input: &str) -> Result<Self, ParseError>
pub fn path(&self) -> &str
pub fn resource(&self) -> Option<&str>
pub fn root_url(&self) -> BootUrl
pub fn new_path(path: String) -> Result<Self, ParseError>
pub fn new_resource( path: String, resource: String, ) -> Result<BootUrl, ParseError>
pub fn new_resource_without_variant( path: String, resource: String, ) -> Result<BootUrl, ParseError>
Trait Implementations§
Source§impl TryFrom<&AbsoluteComponentUrl> for BootUrl
impl TryFrom<&AbsoluteComponentUrl> for BootUrl
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(component_url: &AbsoluteComponentUrl) -> Result<Self, ParseError>
fn try_from(component_url: &AbsoluteComponentUrl) -> Result<Self, ParseError>
Performs the conversion.
impl Eq for BootUrl
impl StructuralPartialEq for BootUrl
Auto Trait Implementations§
impl Freeze for BootUrl
impl RefUnwindSafe for BootUrl
impl Send for BootUrl
impl Sync for BootUrl
impl Unpin for BootUrl
impl UnwindSafe for BootUrl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)