pub enum MnsError {
Parse(Error),
Attr(AttrError),
UnknownEventType(String),
MissingEventType,
MissingEvent,
Obex(ObexError),
Transport(TransportError),
UnexpectedEof,
UnexpectedOpcode(u8),
InvalidTarget,
}Expand description
MNS server and event report XML parsing errors.
Variants§
Parse(Error)
quick-xml reader error encountered while parsing the event report body.
Attr(AttrError)
Attribute value in the <event> element could not be decoded.
UnknownEventType(String)
type attribute value did not match any MAP 1.4 event type; inner string is the raw value.
MissingEventType
<event> element present but type attribute is absent.
MissingEvent
Document contained no <event> element; body may be empty or malformed.
Obex(ObexError)
OBEX protocol-level error during MNS server operation.
Transport(TransportError)
Transport I/O error during MNS server operation.
UnexpectedEof
Transport stream closed before the device sent a clean OBEX DISCONNECT.
UnexpectedOpcode(u8)
Device sent an opcode other than PUT, PUT_FINAL, or DISCONNECT after CONNECT.
InvalidTarget
CONNECT request Target header is absent or does not match the MNS service UUID.
Trait Implementations§
Source§impl Error for MnsError
impl Error for MnsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()