pub struct VmSocket(/* private fields */);
Expand description
A VM socket that has not yet been bound.
Implementations§
Source§impl VmSocket
impl VmSocket
Sourcepub fn set_connect_timeout(&self, duration: Duration) -> Result<()>
pub fn set_connect_timeout(&self, duration: Duration) -> Result<()>
Sets the connection timeout for this socket.
Source§impl VmSocket
impl VmSocket
Sourcepub fn listen(self, backlog: i32) -> Result<VmListener>
pub fn listen(self, backlog: i32) -> Result<VmListener>
Listens for connections, returning a VmListener
.
Trait Implementations§
Source§impl AsFd for VmSocket
impl AsFd for VmSocket
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Source§impl DefaultEncoding for VmSocket
impl DefaultEncoding for VmSocket
Auto Trait Implementations§
impl Freeze for VmSocket
impl RefUnwindSafe for VmSocket
impl Send for VmSocket
impl Sync for VmSocket
impl Unpin for VmSocket
impl UnwindSafe for VmSocket
Blanket Implementations§
Source§impl<T> AsSockRef for T
impl<T> AsSockRef for T
Source§fn as_sock_ref(&self) -> SockRef<'_>
fn as_sock_ref(&self) -> SockRef<'_>
Returns a socket reference.
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