mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
std: sys: net: uefi: Make TcpStream Send
- Since UEFI has no threads, this should be safe. - Makes compiling remote-test-server simpler. Signed-off-by: Ayush Singh <ayush@beagleboard.org>
This commit is contained in:
@@ -9,6 +9,9 @@ pub(crate) enum Tcp {
|
||||
V4(tcp4::Tcp4),
|
||||
}
|
||||
|
||||
// SAFETY: UEFI has no threads.
|
||||
unsafe impl Send for Tcp {}
|
||||
|
||||
impl Tcp {
|
||||
pub(crate) fn connect(addr: &SocketAddr, timeout: Option<Duration>) -> io::Result<Self> {
|
||||
match addr {
|
||||
|
||||
Reference in New Issue
Block a user