Lines Matching refs:Err

126                 Err(_) => {  in read()
129 return (Err(SystemError::EAGAIN_OR_EWOULDBLOCK), Endpoint::Ip(None)); in read()
148 Err(raw::SendError::BufferFull) => { in write()
149 return Err(SystemError::ENOBUFS); in write()
167 return Err(SystemError::ENETUNREACH); in write()
205 return Err(SystemError::EINVAL); in write()
209 return Err(SystemError::ENOTCONN); in write()
313 Err(_) => return Err(SystemError::EINVAL), in do_bind()
316 return Err(SystemError::EINVAL); in do_bind()
371 return Err(SystemError::ENOTCONN); in write()
389 Err(_) => { in write()
391 return Err(SystemError::ENOBUFS); in write()
396 return Err(SystemError::ENOBUFS); in write()
426 Err(SystemError::EINVAL) in connect()
560 Err(_) => Err(SystemError::EINVAL), in do_listen()
626 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read()
640 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read()
650 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read()
658 Err(tcp::RecvError::InvalidState) => { in read()
660 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read()
662 Err(tcp::RecvError::Finished) => { in read()
670 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read()
674 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read()
690 return Err(SystemError::ENOTCONN); in write()
707 Err(e) => { in write()
709 return Err(SystemError::ENOBUFS); in write()
713 return Err(SystemError::ENOBUFS); in write()
717 return Err(SystemError::ENOTCONN); in write()
782 return Err(SystemError::ECONNREFUSED); in connect()
787 Err(e) => { in connect()
790 tcp::ConnectError::InvalidState => return Err(SystemError::EISCONN), in connect()
791 tcp::ConnectError::Unaddressable => return Err(SystemError::EADDRNOTAVAIL), in connect()
796 return Err(SystemError::EINVAL); in connect()
868 return Err(SystemError::EINVAL); in bind()
883 return Err(SystemError::EINVAL); in accept()