Enum xbdm::StatusCode
[−]
[src]
pub enum StatusCode { Ok, Connected, MultilineResponseFollows, BinaryResponseFollows, SendBinaryData, ConnectionDedicated, UnexpectedError, MaxConnectionsExceeded, FileNotFound, NoSuchModule, MemoryNotMapped, NoSuchThread, ClockNotSet, UnknownCommand, NotStopped, MustCopy, FileExists, NotEmpty, InvalidFilename, CannotCreate, AccessDenied, DeviceFull, NotDebuggable, InvalidCounterType, NoCounterData, NotLocked, NeedKeyExchange, MustBeDedicated, Other(u16), }
A status code returned by an XBDM command.
Variants
Ok
200- OK
Connected
201- connected
MultilineResponseFollows
202- multiline response follows
BinaryResponseFollows
203- binary response follows
SendBinaryData
204- send binary data
ConnectionDedicated
205- connection dedicated
UnexpectedError
400- unexpected error
MaxConnectionsExceeded
401- max number of connections exceeded
FileNotFound
402- file not found
NoSuchModule
403- no such module
MemoryNotMapped
404- memory not mapped
NoSuchThread
405- no such thread
ClockNotSet
406-
UnknownCommand
407- unknown command
NotStopped
408- not stopped
MustCopy
409- file must be copied
FileExists
410- file already exists
NotEmpty
411- directory not empty
InvalidFilename
412- filename is invalid
CannotCreate
413- file cannot be created
AccessDenied
414- access denied
DeviceFull
415- no room on device
NotDebuggable
416- not debuggable
InvalidCounterType
417- type invalid
NoCounterData
418- data not available
NotLocked
420- box not locked
NeedKeyExchange
421- key exchange required
MustBeDedicated
422- dedicated connection required
Other(u16)
Methods
impl StatusCode
[src]
fn from_u16(n: u16) -> StatusCode
fn to_u16(&self) -> u16
fn default_message(&self) -> Option<&'static str>
fn is_success(&self) -> bool
fn is_failure(&self) -> bool
Trait Implementations
impl Clone for StatusCode
[src]
fn clone(&self) -> StatusCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for StatusCode
[src]
impl PartialEq for StatusCode
[src]
fn eq(&self, __arg_0: &StatusCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StatusCode) -> bool
This method tests for !=
.
impl Eq for StatusCode
[src]
impl Copy for StatusCode
[src]
impl Display for StatusCode
[src]
impl IntoIterator for StatusCode
[src]
type Item = StatusCode
The type of the elements being iterated over.
type IntoIter = IntoIter<StatusCode>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more