Enum varlink::Listener [−][src]
pub enum Listener { TCP(Option<TcpListener>, bool), UNIX(Option<UnixListener>, bool), }
Variants
TCP(Option<TcpListener>, bool)
UNIX(Option<UnixListener>, bool)
Methods
impl Listener
[src]
impl Listener
pub fn new<S: ?Sized + AsRef<str>>(address: &S) -> Result<Self>
[src]
pub fn new<S: ?Sized + AsRef<str>>(address: &S) -> Result<Self>
pub fn accept(&self, timeout: u64) -> Result<Stream>
[src]
pub fn accept(&self, timeout: u64) -> Result<Stream>
pub fn set_nonblocking(&self, b: bool) -> Result<()>
[src]
pub fn set_nonblocking(&self, b: bool) -> Result<()>
pub fn as_raw_fd(&self) -> RawFd
[src]
pub fn as_raw_fd(&self) -> RawFd
Trait Implementations
impl Debug for Listener
[src]
impl Debug for Listener
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Drop for Listener
[src]
impl Drop for Listener