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 -
Formerrdns.NODATA: DNS server returned an answer with no data. -
ServerFaildns.FORMERR: DNS server claims query was misformatted. -
NotFounddns.SERVFAIL: DNS server returned general failure. -
NotImplementeddns.NOTFOUND: Domain name not found. -
Refuseddns.NOTIMP: DNS server does not implement the requested operation. -
BadQuerydns.REFUSED: DNS server refused query. -
BadNamedns.BADQUERY: Misformatted DNS query. -
BadFamilydns.BADNAME: Misformatted host name. -
BadResponsedns.BADFAMILY: Unsupported address family. -
ConnectionRefuseddns.BADRESP: Misformatted DNS reply. -
Timeoutdns.CONNREFUSED: Could not contact DNS servers. -
EOFdns.TIMEOUT: Timeout while contacting DNS servers. -
Filedns.EOF: End of file. -
NoMemdns.FILE: Error reading file. -
Destructiondns.NOMEM: Out of memory. -
BadStringdns.DESTRUCTION: Channel is being destroyed. -
BadFlagsdns.BADSTR: Misformatted string. -
NoNamedns.BADFLAGS: Illegal flags specified. -
BadHintsdns.NONAME: Given host name is not numeric. -
NotInitializeddns.BADHINTS: Illegal hints flags specified. -
LoadIPHLPAPIdns.NOTINITIALIZED: c-ares library initialization not yet performed. -
AddrGetNetworkParamsdns.LOADIPHLPAPI: Error loading iphlpapi.dll. -
Cancelleddns.ADDRGETNETWORKPARAMS: Could not find GetNetworkParams function. -
TryAgainLaterdns.CANCELLED: DNS query cancelled. -
UnknownDNSErrorEAI_AGAIN: The name server returned a temporary failure indication. Try again later.