pub struct Authority<'a> { /* private fields */ }Implementations§
Source§impl<'a> Authority<'a>
impl<'a> Authority<'a>
pub fn parse(value: &'a [u8]) -> Result<Self, Error>
pub fn is_same(self, other: Self, scheme: Scheme) -> bool
pub fn compare_span( self, other: Span<'_>, scheme: Scheme, ) -> Result<bool, Error>
pub const fn host(self) -> &'a [u8] ⓘ
pub fn hostname(self) -> &'a [u8] ⓘ
pub const fn port(self) -> Option<&'a [u8]>
Sourcepub fn try_port_u16(self) -> Result<Option<u16>, PortError>
pub fn try_port_u16(self) -> Result<Option<u16>, PortError>
Converts an admitted decimal port without repeating its syntax check.
pub fn parse_ip(value: &[u8]) -> Result<IpAddr, Host>
Trait Implementations§
impl<'a> Copy for Authority<'a>
impl<'a> Eq for Authority<'a>
impl<'a> StructuralPartialEq for Authority<'a>
Auto Trait Implementations§
impl<'a> Freeze for Authority<'a>
impl<'a> RefUnwindSafe for Authority<'a>
impl<'a> Send for Authority<'a>
impl<'a> Sync for Authority<'a>
impl<'a> Unpin for Authority<'a>
impl<'a> UnsafeUnpin for Authority<'a>
impl<'a> UnwindSafe for Authority<'a>
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