pub struct Tx5Url(_);Expand description
Tx5 url.
Implementations§
source§impl Tx5Url
impl Tx5Url
sourcepub fn is_server(&self) -> bool
pub fn is_server(&self) -> bool
If this url does not contain the /tx5-ws/[pubkey] path,
then it references a signal server directly, and this function
will return true. Otherwise, it is a client url.
sourcepub fn is_client(&self) -> bool
pub fn is_client(&self) -> bool
If this url contains the /tx5-ws/[pubkey] path,
then it is a client url, otherwise, it is a signal
server url.
sourcepub fn to_server(&self) -> Tx5Url
pub fn to_server(&self) -> Tx5Url
If this is a client url, convert it into a server (signal) url, by dropping the path components.
Trait Implementations§
source§impl Ord for Tx5Url
impl Ord for Tx5Url
source§impl PartialEq<Tx5Url> for Tx5Url
impl PartialEq<Tx5Url> for Tx5Url
source§impl PartialOrd<Tx5Url> for Tx5Url
impl PartialOrd<Tx5Url> for Tx5Url
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Tx5Url
impl StructuralEq for Tx5Url
impl StructuralPartialEq for Tx5Url
Auto Trait Implementations§
impl RefUnwindSafe for Tx5Url
impl Send for Tx5Url
impl Sync for Tx5Url
impl Unpin for Tx5Url
impl UnwindSafe for Tx5Url
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.