status-go/vendor/github.com/pion/transport/packetio/errors.go

28 lines
491 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
package packetio
import (
"errors"
)
// netError implements net.Error
type netError struct {
error
timeout, temporary bool
}
func (e *netError) Timeout() bool {
return e.timeout
}
func (e *netError) Temporary() bool {
return e.temporary
}
var (
// ErrFull is returned when the buffer has hit the configured limits.
ErrFull = errors.New("packetio.Buffer is full, discarding write")
// ErrTimeout is returned when a deadline has expired
ErrTimeout = errors.New("i/o timeout")
)