mineflayer/bot
Types
pub type BotAuthType {
Offline
Mojang
Microsoft
}
Constructors
-
Offline
-
Mojang
-
Microsoft
pub type BotNewError {
DeprecatedAuth(BotAuthType)
UnsupportedProtocolVersion(String)
UnknownError(String)
}
Constructors
-
DeprecatedAuth(BotAuthType)
-
UnsupportedProtocolVersion(String)
-
UnknownError(String)
pub type BotOptions {
BotOptions(
auth: BotAuthType,
username: String,
password: Option(String),
host: String,
port: Int,
version: String,
)
}
Constructors
-
BotOptions( auth: BotAuthType, username: String, password: Option(String), host: String, port: Int, version: String, )
pub type BotRuntimeError {
DNSError(DNSError)
ConnectError(ConnectError)
}
Constructors
-
DNSError(DNSError)
-
ConnectError(ConnectError)
pub type ConnectError {
EACCES
EPERM
EADDRINUSE
EADDRNOTAVAIL
EAFNOSUPPORT
EAGAIN
EALREADY
EBADF
ECONNREFUSED
EFAULT
EINPROGRESS
EINTR
EISCONN
ENETUNREACH
ENOTSOCK
EPROTOTYPE
ETIMEDOUT
UnknownConnectErr
}
Constructors
-
EACCES
-
EPERM
-
EADDRINUSE
-
EADDRNOTAVAIL
-
EAFNOSUPPORT
-
EAGAIN
-
EALREADY
-
EBADF
-
ECONNREFUSED
-
EFAULT
-
EINPROGRESS
-
EINTR
-
EISCONN
-
ENETUNREACH
-
ENOTSOCK
-
EPROTOTYPE
-
ETIMEDOUT
-
UnknownConnectErr
pub type DNSError {
NoData
Formerr
ServerFail
NotFound
NotImplemented
Refused
BadQuery
BadName
BadFamily
BadResponse
ConnectionRefused
Timeout
EOF
File
NoMem
Destruction
BadString
BadFlags
NoName
BadHints
NotInitialized
LoadIPHLPAPI
AddrGetNetworkParams
Cancelled
TryAgainLater
UnknownDNSError
}
Constructors
-
NoData
-
Formerr
dns.NODATA
: DNS server returned an answer with no data. -
ServerFail
dns.FORMERR
: DNS server claims query was misformatted. -
NotFound
dns.SERVFAIL
: DNS server returned general failure. -
NotImplemented
dns.NOTFOUND
: Domain name not found. -
Refused
dns.NOTIMP
: DNS server does not implement the requested operation. -
BadQuery
dns.REFUSED
: DNS server refused query. -
BadName
dns.BADQUERY
: Misformatted DNS query. -
BadFamily
dns.BADNAME
: Misformatted host name. -
BadResponse
dns.BADFAMILY
: Unsupported address family. -
ConnectionRefused
dns.BADRESP
: Misformatted DNS reply. -
Timeout
dns.CONNREFUSED
: Could not contact DNS servers. -
EOF
dns.TIMEOUT
: Timeout while contacting DNS servers. -
File
dns.EOF
: End of file. -
NoMem
dns.FILE
: Error reading file. -
Destruction
dns.NOMEM
: Out of memory. -
BadString
dns.DESTRUCTION
: Channel is being destroyed. -
BadFlags
dns.BADSTR
: Misformatted string. -
NoName
dns.BADFLAGS
: Illegal flags specified. -
BadHints
dns.NONAME
: Given host name is not numeric. -
NotInitialized
dns.BADHINTS
: Illegal hints flags specified. -
LoadIPHLPAPI
dns.NOTINITIALIZED
: c-ares library initialization not yet performed. -
AddrGetNetworkParams
dns.LOADIPHLPAPI
: Error loading iphlpapi.dll. -
Cancelled
dns.ADDRGETNETWORKPARAMS
: Could not find GetNetworkParams function. -
TryAgainLater
dns.CANCELLED
: DNS query cancelled. -
UnknownDNSError
EAI_AGAIN
: The name server returned a temporary failure indication. Try again later.