pub struct ConnectionUrl(/* private fields */);Expand description
A connection URL whose debug output contains only its HTTP or WebSocket origin.
Stores the original value without validation or normalization. Debug output omits user
information, paths, queries, and fragments; invalid URLs and other schemes are redacted.
Use only when the origin is public; use [SecretString] when the whole location is secret.
Implementations§
Source§impl ConnectionUrl
impl ConnectionUrl
Trait Implementations§
Source§impl Clone for ConnectionUrl
impl Clone for ConnectionUrl
Source§impl Debug for ConnectionUrl
impl Debug for ConnectionUrl
impl Eq for ConnectionUrl
Source§impl From<&str> for ConnectionUrl
impl From<&str> for ConnectionUrl
Source§impl From<String> for ConnectionUrl
impl From<String> for ConnectionUrl
Source§impl PartialEq for ConnectionUrl
impl PartialEq for ConnectionUrl
impl StructuralPartialEq for ConnectionUrl
Auto Trait Implementations§
impl Freeze for ConnectionUrl
impl RefUnwindSafe for ConnectionUrl
impl Send for ConnectionUrl
impl Sync for ConnectionUrl
impl Unpin for ConnectionUrl
impl UnsafeUnpin for ConnectionUrl
impl UnwindSafe for ConnectionUrl
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more