pub struct Authority { /* private fields */ }
Expand description
The authority part of an uri.
authority = [ userinfo "@" ] host [ ":" port ]
Implementations§
source§impl Authority
impl Authority
sourcepub fn new(
user_info: Option<String>,
host: impl Into<String>,
port: Option<u16>,
) -> Self
pub fn new( user_info: Option<String>, host: impl Into<String>, port: Option<u16>, ) -> Self
Constructs a new authority.
sourcepub fn with_host_port(host: String, port: u16) -> Self
pub fn with_host_port(host: String, port: u16) -> Self
Constructs an authority only with the host and port.
Trait Implementations§
source§impl Ord for Authority
impl Ord for Authority
source§impl PartialOrd for Authority
impl PartialOrd for Authority
impl Eq for Authority
impl StructuralPartialEq for Authority
Auto Trait Implementations§
impl Freeze for Authority
impl RefUnwindSafe for Authority
impl Send for Authority
impl Sync for Authority
impl Unpin for Authority
impl UnwindSafe for Authority
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
)