tcpea/client/types

Types

pub type ActiveValue {
  True
  False
  Once
}

Constructors

  • True
  • False
  • Once
pub type ConnectOptions {
  Active(ActiveValue)
  Mode(ModeValue)
  Inet
  Inet6
}

Constructors

  • Active(ActiveValue)
  • Mode(ModeValue)
  • Inet
  • Inet6
pub type Error {
  Closed
  Timeout
  E2big
  Eacces
  Eaddrinuse
  Eaddrnotavail
  Eadv
  Eafnosupport
  Eagain
  Ealign
  Ealready
  Ebade
  Ebadf
  Ebadfd
  Ebadmsg
  Ebadr
  Ebadrpc
  Ebadrqc
  Ebadslt
  Ebfont
  Ebusy
  Echild
  Echrng
  Ecomm
  Econnaborted
  Econnrefused
  Econnreset
  Edeadlk
  Edeadlock
  Edestaddrreq
  Edirty
  Edom
  Edotdot
  Edquot
  Eduppkg
  Eexist
  Efault
  Efbig
  Ehostdown
  Ehostunreach
  Eidrm
  Einit
  Einprogress
  Eintr
  Einval
  Eio
  Eisconn
  Eisdir
  Eisnam
  El2hlt
  El2nsync
  El3hlt
  El3rst
  Elbin
  Elibacc
  Elibbad
  Elibexec
  Elibmax
  Elibscn
  Elnrng
  Eloop
  Emfile
  Emlink
  Emsgsize
  Emultihop
  Enametoolong
  Enavail
  Enet
  Enetdown
  Enetreset
  Enetunreach
  Enfile
  Enoano
  Enobufs
  Enocsi
  Enodata
  Enodev
  Enoent
  Enoexec
  Enolck
  Enolink
  Enomem
  Enomsg
  Enonet
  Enopkg
  Enoprotoopt
  Enospc
  Enosr
  Enosym
  Enosys
  Enotblk
  Enotconn
  Enotdir
  Enotempty
  Enotnam
  Enotsock
  Enotsup
  Enotty
  Enotuniq
  Enxio
  Eopnotsupp
  Eperm
  Epfnosupport
  Epipe
  Eproclim
  Eprocunavail
  Eprogmismatch
  Eprogunavail
  Eproto
  Eprotonosupport
  Eprototype
  Erange
  Erefused
  Eremchg
  Eremdev
  Eremote
  Eremoteio
  Eremoterelease
  Erofs
  Erpcmismatch
  Erremote
  Eshutdown
  Esocktnosupport
  Espipe
  Esrch
  Esrmnt
  Estale
  Esuccess
  Etime
  Etimedout
  Etoomanyrefs
  Etxtbsy
  Euclean
  Eunatch
  Eusers
  Eversion
  Ewouldblock
  Exdev
  Exfull
  Nxdomain
}

Constructors

  • Closed

    Connection has closed

  • Timeout

    Action timed out

  • E2big

    Too long argument list

  • Eacces

    Permission denied

  • Eaddrinuse

    Address already in use

  • Eaddrnotavail

    Cannot assign requested address

  • Eadv

    Advertise error

  • Eafnosupport

    Address family not supported by protocol family

  • Eagain

    Resource temporarily unavailable

  • Ealign

    EALIGN

  • Ealready

    Operation already in progress

  • Ebade

    Bad exchange descriptor

  • Ebadf

    Bad file number

  • Ebadfd

    File descriptor in bad state

  • Ebadmsg

    Not a data message

  • Ebadr

    Bad request descriptor

  • Ebadrpc

    Bad RPC structure

  • Ebadrqc

    Bad request code

  • Ebadslt

    Invalid slot

  • Ebfont

    Bad font file format

  • Ebusy

    File busy

  • Echild

    No children

  • Echrng

    Channel number out of range

  • Ecomm

    Communication error on send

  • Econnaborted

    Software caused connection abort

  • Econnrefused

    Connection refused

  • Econnreset

    Connection reset by peer

  • Edeadlk

    Resource deadlock avoided

  • Edeadlock

    Resource deadlock avoided

  • Edestaddrreq

    Destination address required

  • Edirty

    Mounting a dirty fs without force

  • Edom

    Math argument out of range

  • Edotdot

    Cross mount point

  • Edquot

    Disk quota exceeded

  • Eduppkg

    Duplicate package name

  • Eexist

    File already exists

  • Efault

    Bad address in system call argument

  • Efbig

    File too large

  • Ehostdown

    Host is down

  • Ehostunreach

    Host is unreachable

  • Eidrm

    Identifier removed

  • Einit

    Initialization error

  • Einprogress

    Operation now in progress

  • Eintr

    Interrupted system call

  • Einval

    Invalid argument

  • Eio

    I/O error

  • Eisconn

    Socket is already connected

  • Eisdir

    Illegal operation on a directory

  • Eisnam

    Is a named file

  • El2hlt

    Level 2 halted

  • El2nsync

    Level 2 not synchronized

  • El3hlt

    Level 3 halted

  • El3rst

    Level 3 reset

  • Elbin

    ELBIN

  • Elibacc

    Cannot access a needed shared library

  • Elibbad

    Accessing a corrupted shared library

  • Elibexec

    Cannot exec a shared library directly

  • Elibmax

    Attempting to link in more shared libraries than system limit

  • Elibscn

    .lib section in a.out corrupted

  • Elnrng

    Link number out of range

  • Eloop

    Too many levels of symbolic links

  • Emfile

    Too many open files

  • Emlink

    Too many links

  • Emsgsize

    Message too long

  • Emultihop

    Multihop attempted

  • Enametoolong

    Filename too long

  • Enavail

    Unavailable

  • Enet

    ENET

  • Enetdown

    Network is down

  • Enetreset

    Network dropped connection on reset

  • Enetunreach

    Network is unreachable

  • Enfile

    File table overflow

  • Enoano

    Anode table overflow

  • Enobufs

    No buffer space available

  • Enocsi

    No CSI structure available

  • Enodata

    No data available

  • Enodev

    No such device

  • Enoent

    No such file or directory

  • Enoexec

    Exec format error

  • Enolck

    No locks available

  • Enolink

    Link has been severed

  • Enomem

    Not enough memory

  • Enomsg

    No message of desired type

  • Enonet

    Machine is not on the network

  • Enopkg

    Package not installed

  • Enoprotoopt

    Bad protocol option

  • Enospc

    No space left on device

  • Enosr

    Out of stream resources or not a stream device

  • Enosym

    Unresolved symbol name

  • Enosys

    Function not implemented

  • Enotblk

    Block device required

  • Enotconn

    Socket is not connected

  • Enotdir

    Not a directory

  • Enotempty

    Directory not empty

  • Enotnam

    Not a named file

  • Enotsock

    Socket operation on non-socket

  • Enotsup

    Operation not supported

  • Enotty

    Inappropriate device for ioctl

  • Enotuniq

    Name not unique on network

  • Enxio

    No such device or address

  • Eopnotsupp

    Operation not supported on socket

  • Eperm

    Not owner

  • Epfnosupport

    Protocol family not supported

  • Epipe

    Broken pipe

  • Eproclim

    Too many processes

  • Eprocunavail

    Bad procedure for program

  • Eprogmismatch

    Wrong program version

  • Eprogunavail

    RPC program unavailable

  • Eproto

    Protocol error

  • Eprotonosupport

    Protocol not supported

  • Eprototype

    Wrong protocol type for socket

  • Erange

    Math result unrepresentable

  • Erefused

    EREFUSED

  • Eremchg

    Remote address changed

  • Eremdev

    Remote device

  • Eremote

    Pathname hit remote filesystem

  • Eremoteio

    Remote I/O error

  • Eremoterelease

    EREMOTERELEASE

  • Erofs

    Read-only filesystem

  • Erpcmismatch

    Wrong RPC version

  • Erremote

    Object is remote

  • Eshutdown

    Cannot send after socket shutdown

  • Esocktnosupport

    Socket type not supported

  • Espipe

    Invalid seek

  • Esrch

    No such process

  • Esrmnt

    Srmount error

  • Estale

    Stale remote file handle

  • Esuccess

    Error 0

  • Etime

    Timer expired

  • Etimedout

    Connection timed out

  • Etoomanyrefs

    Too many references

  • Etxtbsy

    Text file or pseudo-device busy

  • Euclean

    Structure needs cleaning

  • Eunatch

    Protocol driver not attached

  • Eusers

    Too many users

  • Eversion

    Version mismatch

  • Ewouldblock

    Operation would block

  • Exdev

    Cross-device link

  • Exfull

    Message tables full

  • Nxdomain

    Hostname or domain name cannot be found

pub type IpVersion {
  Ipv4
  Ipv6
  Transparent
}

Constructors

  • Ipv4
  • Ipv6
  • Transparent

    HappyEyeballs (RFC 8305 is used)

pub type ModeValue {
  Binary
  List
}

Constructors

  • Binary
  • List
pub type ShutdownOptions {
  Read
  Write
  ReadWrite
}

Constructors

  • Read
  • Write
  • ReadWrite
pub type Socket
pub type TcpeaOptions {
  TcpeaOptions(
    host: String,
    port: Int,
    timeout: Int,
    ip_version: IpVersion,
  )
}

Constructors

  • TcpeaOptions(
      host: String,
      port: Int,
      timeout: Int,
      ip_version: IpVersion,
    )
Search Document