summaryrefslogtreecommitdiffstats
path: root/third_party/rust/mio/src/sys/shell/uds.rs
blob: c18aca042fc53b8ae436a465671d3491170a1c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
pub(crate) mod datagram {
    use crate::net::SocketAddr;
    use std::io;
    use std::os::unix::net;
    use std::path::Path;

    pub(crate) fn bind(_: &Path) -> io::Result<net::UnixDatagram> {
        os_required!()
    }

    pub(crate) fn unbound() -> io::Result<net::UnixDatagram> {
        os_required!()
    }

    pub(crate) fn pair() -> io::Result<(net::UnixDatagram, net::UnixDatagram)> {
        os_required!()
    }

    pub(crate) fn local_addr(_: &net::UnixDatagram) -> io::Result<SocketAddr> {
        os_required!()
    }

    pub(crate) fn peer_addr(_: &net::UnixDatagram) -> io::Result<SocketAddr> {
        os_required!()
    }

    pub(crate) fn recv_from(
        _: &net::UnixDatagram,
        _: &mut [u8],
    ) -> io::Result<(usize, SocketAddr)> {
        os_required!()
    }
}

pub(crate) mod listener {
    use crate::net::{SocketAddr, UnixStream};
    use std::io;
    use std::os::unix::net;
    use std::path::Path;

    pub(crate) fn bind(_: &Path) -> io::Result<net::UnixListener> {
        os_required!()
    }

    pub(crate) fn accept(_: &net::UnixListener) -> io::Result<(UnixStream, SocketAddr)> {
        os_required!()
    }

    pub(crate) fn local_addr(_: &net::UnixListener) -> io::Result<SocketAddr> {
        os_required!()
    }
}

pub(crate) mod stream {
    use crate::net::SocketAddr;
    use std::io;
    use std::os::unix::net;
    use std::path::Path;

    pub(crate) fn connect(_: &Path) -> io::Result<net::UnixStream> {
        os_required!()
    }

    pub(crate) fn pair() -> io::Result<(net::UnixStream, net::UnixStream)> {
        os_required!()
    }

    pub(crate) fn local_addr(_: &net::UnixStream) -> io::Result<SocketAddr> {
        os_required!()
    }

    pub(crate) fn peer_addr(_: &net::UnixStream) -> io::Result<SocketAddr> {
        os_required!()
    }
}