pub enum ResolvedDestination {
Literal(SocketAddr),
Named(String, String),
}Expand description
Represents the resolved destination for a Matrix server.
Variants§
Literal(SocketAddr)
A literal IP address and port (e.g., 1.2.3.4:8448)
Named(String, String)
A named host and port (e.g., “matrix.org”, “8448”)
Trait Implementations§
Source§impl Clone for ResolvedDestination
impl Clone for ResolvedDestination
Source§fn clone(&self) -> ResolvedDestination
fn clone(&self) -> ResolvedDestination
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 moreAuto Trait Implementations§
impl Freeze for ResolvedDestination
impl RefUnwindSafe for ResolvedDestination
impl Send for ResolvedDestination
impl Sync for ResolvedDestination
impl Unpin for ResolvedDestination
impl UnsafeUnpin for ResolvedDestination
impl UnwindSafe for ResolvedDestination
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