#[non_exhaustive]pub enum Error {
Show 17 variants
OutOfRange,
InvalidSignalId(TxLabel, u8),
InvalidHeader,
InvalidMessage,
Timeout,
RemoteRejected(RemoteReject),
UnimplementedMessage,
PeerDisconnected,
AlreadyReceived,
ChannelSetup(Status),
PeerRead(Status),
PeerWrite(Status),
Encoding,
RequestInvalid(ErrorCode),
RequestInvalidExtra(ErrorCode, u8),
InvalidState,
Other(Error),
}
Expand description
The error type of the AVDTP library.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OutOfRange
The value that was sent on the wire was out of range.
InvalidSignalId(TxLabel, u8)
The signal identifier was invalid when parsing a message.
InvalidHeader
The header was invalid when parsing a message from the peer.
InvalidMessage
The body format was invalid when parsing a message from the peer.
Timeout
The remote end failed to respond to this command in time.
RemoteRejected(RemoteReject)
The Remote end rejected a command we sent (with this error code)
UnimplementedMessage
When a message hasn’t been implemented yet, the parser will return this.
PeerDisconnected
The distant peer has disconnected.
AlreadyReceived
Sent if a Command Future is polled after it’s already completed
ChannelSetup(Status)
Encountered an IO error setting up the channel
PeerRead(Status)
Encountered an IO error reading from the peer.
PeerWrite(Status)
Encountered an IO error reading from the peer.
Encoding
A message couldn’t be encoded.
RequestInvalid(ErrorCode)
An error has been detected, and the request that is being handled should be rejected with the error code given.
RequestInvalidExtra(ErrorCode, u8)
Same as RequestInvalid, but an extra byte is included, which is used in Stream and Configure responses
InvalidState
An operation was attempted in an Invalid State
Other(Error)
An error from another source