pub struct Url { /* private fields */ }Implementations§
Source§impl Url
impl Url
pub fn uri(&self) -> &Uri
pub fn uri_mut(&mut self) -> &mut Uri
pub fn into_uri(self) -> Uri
pub fn set_uri(&mut self, uri: impl AsRef<str>) -> Result<(), RlsError>
pub fn addr(&self) -> &Addr
pub fn set_addr(&mut self, addr: Addr)
pub fn set_scheme(&mut self, proto: Scheme)
pub fn protocol(&self) -> &Scheme
pub fn into_inner(self) -> (Scheme, Addr, Uri)
pub fn username(&self) -> &str
pub fn password(&self) -> &str
pub fn set_username(&mut self, username: String)
pub fn set_password(&mut self, password: String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Url
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnsafeUnpin for Url
impl UnwindSafe for Url
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