pub struct Uri { /* private fields */ }
Implementations§
source§impl Uri
impl Uri
sourcepub fn new(
scheme: Option<Scheme>,
authority: Option<Authority>,
path_query: PathAndQuery,
) -> Self
pub fn new( scheme: Option<Scheme>, authority: Option<Authority>, path_query: PathAndQuery, ) -> Self
Constructs a new Uri
.
Returns the authority.
sourcepub fn path_and_query(&self) -> &PathAndQuery
pub fn path_and_query(&self) -> &PathAndQuery
Returns the path and query.
Trait Implementations§
source§impl Ord for Uri
impl Ord for Uri
source§impl PartialOrd for Uri
impl PartialOrd for Uri
source§impl ToSocketAddrs for Uri
impl ToSocketAddrs for Uri
source§type Iter = IntoIter<SocketAddr>
type Iter = IntoIter<SocketAddr>
Returned iterator over socket addresses which this type may correspond
to.
source§fn to_socket_addrs(&self) -> Result<Self::Iter>
fn to_socket_addrs(&self) -> Result<Self::Iter>
Converts this object to an iterator of resolved
SocketAddr
s. Read moreimpl Eq for Uri
impl StructuralPartialEq for Uri
Auto Trait Implementations§
impl Freeze for Uri
impl RefUnwindSafe for Uri
impl Send for Uri
impl Sync for Uri
impl Unpin for Uri
impl UnwindSafe for Uri
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
)