Lines Matching defs:new
257 /// Set non-blocking mode on the new socket
267 /// Set close-on-exec on the new descriptor
388 /// Creates a new instance with the credentials of the current process
389 pub fn new() -> Self {
418 Self::new()
523 /// Instantiate a new `IpMembershipRequest`
526 pub fn new(group: net::Ipv4Addr, interface: Option<net::Ipv4Addr>)
548 /// Instantiate a new `Ipv6MembershipRequest`
549 pub const fn new(group: net::Ipv6Addr) -> Self {
706 /// let iov = [IoSlice::new(message)];
713 /// let mut iov = [IoSliceMut::new(&mut buffer)];
725 /// let rduration = Duration::new(rtime.tv_sec() as u64,
1454 /// let iov = [IoSlice::new(b"hello")];
1470 /// let iov = [IoSlice::new(b"hello")];
1856 let mut recv_iovs = Vec::new();
1857 let mut pkt_iovs = Vec::new();
1860 pkt_iovs.push(IoSliceMut::new(chunk));
1863 pkt_iovs = Vec::new();
1869 let iov1 = [IoSlice::new(&sbuf)];