YTSFlix_Go/vendor/github.com/anacrolix/go-libutp/deadline.go
2018-11-04 15:58:15 +01:00

12 lines
299 B
Go

package utp
import "net"
type errDeadlineExceeded struct{}
var _ net.Error = errDeadlineExceeded{}
func (errDeadlineExceeded) Error() string { return "deadline exceeded" }
func (errDeadlineExceeded) Temporary() bool { return false }
func (errDeadlineExceeded) Timeout() bool { return true }