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:
parent
1279939b38
commit
50b60aaff3
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue