pub struct GatewayUri { /* private fields */ }Expand description
A normalized gateway origin URI with a default port if none is specified.
Implementations§
Source§impl GatewayUri
impl GatewayUri
pub fn new( scheme: Scheme, authority: Authority, ) -> Result<Self, Box<dyn Error + Send + Sync>>
pub fn from_static(string: &'static str) -> Self
pub fn to_uri(&self) -> Uri
pub fn rfc_9540_url(&self) -> Uri
pub fn probe_url(&self) -> Uri
pub async fn to_socket_addr(&self) -> Result<Option<SocketAddr>>
pub async fn to_socket_addrs(&self) -> Result<impl Iterator<Item = SocketAddr>>
Trait Implementations§
Source§impl Clone for GatewayUri
impl Clone for GatewayUri
Source§fn clone(&self) -> GatewayUri
fn clone(&self) -> GatewayUri
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GatewayUri
impl Debug for GatewayUri
Source§impl From<Authority> for GatewayUri
impl From<Authority> for GatewayUri
Source§impl From<GatewayUri> for Uri
impl From<GatewayUri> for Uri
Source§fn from(val: GatewayUri) -> Uri
fn from(val: GatewayUri) -> Uri
Converts to this type from the input type.
Source§impl FromStr for GatewayUri
impl FromStr for GatewayUri
Source§impl Hash for GatewayUri
impl Hash for GatewayUri
Source§impl PartialEq for GatewayUri
impl PartialEq for GatewayUri
Source§impl TryFrom<Uri> for GatewayUri
impl TryFrom<Uri> for GatewayUri
impl Eq for GatewayUri
impl StructuralPartialEq for GatewayUri
Auto Trait Implementations§
impl !Freeze for GatewayUri
impl RefUnwindSafe for GatewayUri
impl Send for GatewayUri
impl Sync for GatewayUri
impl Unpin for GatewayUri
impl UnwindSafe for GatewayUri
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