Struct worker::SocketAddress
source · pub struct SocketAddress {
pub hostname: String,
pub port: u16,
}
Expand description
The host and port that you wish to connect to.
Fields§
§hostname: String
The hostname to connect to. Example: cloudflare.com
.
port: u16
The port number to connect to. Example: 5432
.
Auto Trait Implementations§
impl Freeze for SocketAddress
impl RefUnwindSafe for SocketAddress
impl Send for SocketAddress
impl Sync for SocketAddress
impl Unpin for SocketAddress
impl UnwindSafe for SocketAddress
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