pub enum ObexError {
NotConnected,
Packet(PacketError),
ConnectRejected(u8),
MissingConnectionId,
BodyTooLarge,
}Expand description
OBEX client errors — connection state, packet codec, server rejection, and missing protocol headers.
Variants§
NotConnected
No active connection; call handle_connect_response first.
Packet(PacketError)
Packet codec failure during request encoding or response decode.
ConnectRejected(u8)
Server refused CONNECT; carries the response opcode byte.
MissingConnectionId
CONNECT response did not include a ConnectionId header; the session cannot be used.
BodyTooLarge
Message body exceeds the 4 GiB limit the OBEX Length header can express.
Trait Implementations§
Source§impl Error for ObexError
impl Error for ObexError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PacketError> for ObexError
impl From<PacketError> for ObexError
Source§fn from(source: PacketError) -> ObexError
fn from(source: PacketError) -> ObexError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ObexError
impl RefUnwindSafe for ObexError
impl Send for ObexError
impl Sync for ObexError
impl Unpin for ObexError
impl UnsafeUnpin for ObexError
impl UnwindSafe for ObexError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more