Struct worker::SocketOptions
source · pub struct SocketOptions {
pub secure_transport: SecureTransport,
pub allow_half_open: bool,
}Expand description
Used to configure outbound TCP connections.
Fields§
§secure_transport: SecureTransportSpecifies whether or not to use TLS when creating the TCP socket.
allow_half_open: boolDefines whether the writable side of the TCP socket will automatically close on end-of-file (EOF). When set to false, the writable side of the TCP socket will automatically close on EOF. When set to true, the writable side of the TCP socket will remain open on EOF.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SocketOptions
impl RefUnwindSafe for SocketOptions
impl Send for SocketOptions
impl Sync for SocketOptions
impl Unpin for SocketOptions
impl UnwindSafe for SocketOptions
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