Enum Error

Source
#[non_exhaustive]
pub enum Error {
Show 492 variants ErrBufferFull, ErrBufferClosed, ErrBufferShort, ErrPacketTooBig, ErrTimeout, ErrClosedListener, ErrListenQueueExceeded, ErrClosedListenerAcceptCh, ErrObsCannotBeNil, ErrUseClosedNetworkConn, ErrAddrNotUdpAddr, ErrLocAddr, ErrAlreadyClosed, ErrNoRemAddr, ErrAddressAlreadyInUse, ErrNoSuchUdpConn, ErrCannotRemoveUnspecifiedIp, ErrNoAddressAssigned, ErrNatRequriesMapping, ErrMismatchLengthIp, ErrNonUdpTranslationNotSupported, ErrNoAssociatedLocalAddress, ErrNoNatBindingFound, ErrHasNoPermission, ErrHostnameEmpty, ErrFailedToParseIpaddr, ErrNoInterface, ErrNotFound, ErrUnexpectedNetwork, ErrCantAssignRequestedAddr, ErrUnknownNetwork, ErrNoRouterLinked, ErrInvalidPortNumber, ErrUnexpectedTypeSwitchFailure, ErrBindFailed, ErrEndPortLessThanStart, ErrPortSpaceExhausted, ErrVnetDisabled, ErrInvalidLocalIpInStaticIps, ErrLocalIpBeyondStaticIpsSubset, ErrLocalIpNoStaticsIpsAssociated, ErrRouterAlreadyStarted, ErrRouterAlreadyStopped, ErrStaticIpIsBeyondSubnet, ErrAddressSpaceExhausted, ErrNoIpaddrEth0, ErrInvalidMask, HandshakeInProgress, ContextUnsupported, ReservedExportKeyingMaterial, CipherSuiteUnset, Hash(String), PoisonError(String), WrongMarshalSize, InvalidTotalLost, InvalidHeader, EmptyCompound, BadFirstPacket, MissingCname, PacketBeforeCname, TooManyReports, TooManyChunks, TooManySources, PacketTooShort, BufferTooShort, WrongType, SdesTextTooLong, SdesMissingType, ReasonTooLong, BadVersion, WrongPadding, WrongFeedbackType, WrongPayloadType, HeaderTooSmall, SsrcMustBeZero, MissingRembIdentifier, SsrcNumAndLengthMismatch, InvalidSizeOrStartIndex, DeltaExceedLimit, PacketStatusChunkLength, InvalidBitrate, WrongChunkType, BadStructMemberType, BadReadParameter, ErrHeaderSizeInsufficient, ErrHeaderSizeInsufficientForExtension, ErrBufferTooSmall, ErrHeaderExtensionsNotEnabled, ErrHeaderExtensionNotFound, ErrRfc8285oneByteHeaderIdrange, ErrRfc8285oneByteHeaderSize, ErrRfc8285twoByteHeaderIdrange, ErrRfc8285twoByteHeaderSize, ErrRfc3550headerIdrange, ErrShortPacket, ErrNilPacket, ErrTooManyPDiff, ErrTooManySpatialLayers, ErrUnhandledNaluType, ErrH265CorruptedPacket, ErrInvalidH265PacketType, ErrPayloadTooSmallForObuExtensionHeader, ErrPayloadTooSmallForObuPayloadSize, HeaderExtensionPayloadNot32BitWords, AudioLevelOverflow, PayloadIsNotLargeEnough, StapASizeLargerThanBuffer(usize, usize), NaluTypeIsNotHandled(u8), ErrDuplicated, ErrShortSrtpMasterKey, ErrShortSrtpMasterSalt, ErrNoSuchSrtpProfile, ErrNonZeroKdrNotSupported, ErrExporterWrongLabel, ErrNoConfig, ErrNoConn, ErrFailedToVerifyAuthTag, ErrTooShortRtcp, ErrPayloadDiffers, ErrStartedChannelUsedIncorrectly, ErrStreamNotInited, ErrStreamAlreadyClosed, ErrStreamAlreadyInited, ErrFailedTypeAssertion, UnsupportedIndexOverKdr, SrtpMasterKeyLength(usize, usize), SrtpSaltLength(usize, usize), ExtMapParse(String), SsrcMissingFromSrtp(u32), SrtpSsrcDuplicated(u32, u16), SrtcpSsrcDuplicated(u32, usize), SsrcMissingFromSrtcp(u32), StreamWithSsrcExists(u32), SessionRtpRtcpTypeMismatch, SessionEof, SrtpTooSmall(usize, usize), SrtcpTooSmall(usize, usize), RtpFailedToVerifyAuthTag, RtcpFailedToVerifyAuthTag, SessionSrtpAlreadyClosed, InvalidRtpStream, InvalidRtcpStream, ErrAttributeNotFound, ErrTransactionStopped, ErrTransactionNotExists, ErrTransactionExists, ErrAgentClosed, ErrTransactionTimeOut, ErrNoDefaultReason, ErrUnexpectedEof, ErrAttributeSizeInvalid, ErrAttributeSizeOverflow, ErrDecodeToNil, ErrUnexpectedHeaderEof, ErrIntegrityMismatch, ErrFingerprintMismatch, ErrFingerprintBeforeIntegrity, ErrBadUnknownAttrsSize, ErrBadIpLength, ErrNoConnection, ErrClientClosed, ErrNoAgent, ErrCollectorClosed, ErrUnsupportedNetwork, ErrInvalidUrl, ErrSchemeType, ErrHost, ErrRelayAddressInvalid, ErrNoAvailableConns, ErrConnUnset, ErrListenerUnset, ErrListeningAddressInvalid, ErrRelayAddressGeneratorUnset, ErrMaxRetriesExceeded, ErrMaxPortNotZero, ErrMinPortNotZero, ErrMaxPortLessThanMinPort, ErrNilConn, ErrTodo, ErrAlreadyListening, ErrFailedToClose, ErrFailedToRetransmitTransaction, ErrAllRetransmissionsFailed, ErrChannelBindNotFound, ErrStunserverAddressNotSet, ErrOneAllocateOnly, ErrAlreadyAllocated, ErrNonStunmessage, ErrFailedToDecodeStun, ErrUnexpectedStunrequestMessage, ErrInvalidChannelNumber, ErrBadChannelDataLength, ErrInvalidRequestedFamilyValue, ErrFakeErr, ErrClosed, ErrUdpaddrCast, ErrDoubleLock, ErrTransactionClosed, ErrWaitForResultOnNonResultTransaction, ErrFailedToBuildRefreshRequest, ErrFailedToRefreshAllocation, ErrFailedToGetLifetime, ErrShortBuffer, ErrUnexpectedResponse, ErrAllocatePacketConnMustBeSet, ErrAllocateConnMustBeSet, ErrLeveledLoggerMustBeSet, ErrSameChannelDifferentPeer, ErrNilFiveTuple, ErrNilFiveTupleSrcAddr, ErrNilFiveTupleDstAddr, ErrNilTurnSocket, ErrLifetimeZero, ErrDupeFiveTuple, ErrFailedToCastUdpaddr, ErrFailedToGenerateNonce, ErrFailedToSendError, ErrDuplicatedNonce, ErrNoSuchUser, ErrUnexpectedClass, ErrUnexpectedMethod, ErrFailedToHandle, ErrUnhandledStunpacket, ErrUnableToHandleChannelData, ErrFailedToCreateStunpacket, ErrFailedToCreateChannelData, ErrRelayAlreadyAllocatedForFiveTuple, ErrRequestedTransportMustBeUdp, ErrNoDontFragmentSupport, ErrRequestWithReservationTokenAndEvenPort, ErrNoAllocationFound, ErrNoPermission, ErrShortWrite, ErrNoSuchChannelBind, ErrFailedWriteSocket, ErrUnknownType, ErrStunQuery, ErrInvalidQuery, ErrPort, ErrLocalUfragInsufficientBits, ErrLocalPwdInsufficientBits, ErrProtoType, ErrNoCandidatePairs, ErrCanceledByCaller, ErrMultipleStart, ErrRemoteUfragEmpty, ErrRemotePwdEmpty, ErrNoOnCandidateHandler, ErrMultipleGatherAttempted, ErrUsernameEmpty, ErrPasswordEmpty, ErrAddressParseFailed, ErrLiteUsingNonHostCandidates, ErrLiteSupportOnly, ErrUselessUrlsProvided, ErrUnsupportedNat1to1IpCandidateType, ErrInvalidNat1to1IpMapping, ErrExternalMappedIpNotFound, ErrMulticastDnsWithNat1to1IpMapping, ErrIneffectiveNat1to1IpMappingHost, ErrIneffectiveNat1to1IpMappingSrflx, ErrInvalidMulticastDnshostName, ErrMulticastDnsNotSupported, ErrRestartWhenGathering, ErrRunCanceled, ErrTcpMuxNotInitialized, ErrTcpRemoteAddrAlreadyExists, ErrSendPacket, ErrAttributeTooShortIceCandidate, ErrParseComponent, ErrParsePriority, ErrParsePort, ErrParseRelatedAddr, ErrParseType, ErrUnknownCandidateType, ErrGetXorMappedAddrResponse, ErrConnectionAddrAlreadyExist, ErrReadingStreamingPacket, ErrWriting, ErrClosingConnection, ErrDetermineNetworkType, ErrMissingProtocolScheme, ErrTooManyColonsAddr, ErrRead, ErrUnknownRole, ErrMismatchUsername, ErrIceWriteStunMessage, ErrUrlParse, ErrCandidateIpNotFound, ErrConnClosed, ErrDeadlineExceeded, ErrContextUnsupported, ErrDtlspacketInvalidLength, ErrHandshakeInProgress, ErrInvalidContentType, ErrInvalidMac, ErrInvalidPacketLength, ErrReservedExportKeyingMaterial, ErrCertificateVerifyNoCertificate, ErrCipherSuiteNoIntersection, ErrCipherSuiteUnset, ErrClientCertificateNotVerified, ErrClientCertificateRequired, ErrClientNoMatchingSrtpProfile, ErrClientRequiredButNoServerEms, ErrCompressionMethodUnset, ErrCookieMismatch, ErrCookieTooLong, ErrIdentityNoPsk, ErrInvalidCertificate, ErrInvalidCipherSpec, ErrInvalidCipherSuite, ErrInvalidClientKeyExchange, ErrInvalidCompressionMethod, ErrInvalidEcdsasignature, ErrInvalidEllipticCurveType, ErrInvalidExtensionType, ErrInvalidHashAlgorithm, ErrInvalidNamedCurve, ErrInvalidPrivateKey, ErrNamedCurveAndPrivateKeyMismatch, ErrInvalidSniFormat, ErrInvalidSignatureAlgorithm, ErrKeySignatureMismatch, ErrNilNextConn, ErrNoAvailableCipherSuites, ErrNoAvailableSignatureSchemes, ErrNoCertificates, ErrNoConfigProvided, ErrNoSupportedEllipticCurves, ErrUnsupportedProtocolVersion, ErrPskAndCertificate, ErrPskAndIdentityMustBeSetForClient, ErrRequestedButNoSrtpExtension, ErrServerMustHaveCertificate, ErrServerNoMatchingSrtpProfile, ErrServerRequiredButNoClientEms, ErrVerifyDataMismatch, ErrHandshakeMessageUnset, ErrInvalidFlight, ErrKeySignatureGenerateUnimplemented, ErrKeySignatureVerifyUnimplemented, ErrLengthMismatch, ErrNotEnoughRoomForNonce, ErrNotImplemented, ErrSequenceNumberOverflow, ErrUnableToMarshalFragmented, ErrInvalidFsmTransition, ErrApplicationDataEpochZero, ErrUnhandledContextType, ErrContextCanceled, ErrEmptyFragment, ErrAlertFatalOrClose, ErrFragmentBufferOverflow { new_size: usize, max_size: usize, }, ErrClientTransportNotSet, Sec1(Error), P256(P256Error), RcGen(Error), InvalidPEM(String), EndpointStopping, TooManyConnections, InvalidDnsName(String), InvalidRemoteAddress(SocketAddr), NoClientConfig, NoServerConfig, ErrChunkHeaderTooSmall, ErrChunkHeaderNotEnoughSpace, ErrChunkHeaderPaddingNonZero, ErrChunkHeaderInvalidLength, ErrChunkTypeNotAbort, ErrBuildAbortChunkFailed, ErrChunkTypeNotCookieAck, ErrChunkTypeNotCookieEcho, ErrChunkTypeNotCt, ErrBuildErrorChunkFailed, ErrMarshalStreamFailed, ErrChunkTooShort, ErrChunkTypeNotForwardTsn, ErrChunkTypeNotHeartbeat, ErrChunkTypeNotHeartbeatAck, ErrHeartbeatNotLongEnoughInfo, ErrParseParamTypeFailed, ErrHeartbeatParam, ErrHeartbeatChunkUnmarshal, ErrUnimplemented, ErrHeartbeatAckParams, ErrHeartbeatAckNotHeartbeatInfo, ErrHeartbeatAckMarshalParam, ErrErrorCauseTooSmall, ErrParamTypeUnhandled, ErrParamTypeUnexpected, ErrParamHeaderTooShort, ErrParamHeaderSelfReportedLengthShorter, ErrParamHeaderSelfReportedLengthLonger, ErrParamHeaderParseFailed, ErrParamPacketTooShort, ErrSsnResetRequestParamTooShort, ErrReconfigRespParamTooShort, ErrInvalidAlgorithmType, ErrInitChunkParseParamTypeFailed, ErrInitChunkUnmarshalParam, ErrInitAckMarshalParam, ErrChunkTypeNotTypeInit, ErrChunkValueNotLongEnough, ErrChunkTypeInitFlagZero, ErrChunkTypeInitUnmarshalFailed, ErrChunkTypeInitMarshalFailed, ErrChunkTypeInitInitiateTagZero, ErrInitInboundStreamRequestZero, ErrInitOutboundStreamRequestZero, ErrInitAdvertisedReceiver1500, ErrChunkPayloadSmall, ErrChunkTypeNotPayloadData, ErrChunkTypeNotReconfig, ErrChunkReconfigInvalidParamA, ErrChunkParseParamTypeFailed, ErrChunkMarshalParamAReconfigFailed, ErrChunkMarshalParamBReconfigFailed, ErrChunkTypeNotSack, ErrSackSizeNotLargeEnoughInfo, ErrInvalidChunkSize, ErrChunkTypeNotShutdown, ErrChunkTypeNotShutdownAck, ErrChunkTypeNotShutdownComplete, ErrPacketRawTooSmall, ErrParseSctpChunkNotEnoughData, ErrUnmarshalUnknownChunkType, ErrChecksumMismatch, ErrUnexpectedChuckPoppedUnordered, ErrUnexpectedChuckPoppedOrdered, ErrUnexpectedQState, ErrTryAgain, ErrAbortChunk(String), ErrShutdownNonEstablished, ErrAssociationClosedBeforeConn, ErrAssociationInitFailed, ErrAssociationHandshakeClosed, ErrSilentlyDiscard, ErrInitNotStoredToSend, ErrCookieEchoNotStoredToSend, ErrSctpPacketSourcePortZero, ErrSctpPacketDestinationPortZero, ErrInitChunkBundled, ErrInitChunkVerifyTagNotZero, ErrHandleInitState, ErrInitAckNoCookie, ErrStreamAlreadyExist, ErrStreamCreateFailed, ErrInflightQueueTsnPop, ErrTsnRequestNotExist, ErrResetPacketInStateNotExist, ErrParameterType, ErrPayloadDataStateNotExist, ErrChunkTypeUnhandled, ErrHandshakeInitAck, ErrHandshakeCookieEcho, ErrOutboundPacketTooLarge, ErrStreamClosed, ErrStreamNotExisted, ErrAssociationNotExisted, ErrEof, ErrInvalidSystemTime, ErrNetConnRead, ErrMaxDataChannelID, UnexpectedEndOfBuffer { expected: usize, actual: usize, }, InvalidMessageType(u8), InvalidChannelType(u8), InvalidPayloadProtocolIdentifier(u8), UnknownProtocol, AesGcm(Error), ParseIp(AddrParseError), ParseInt(ParseIntError), Io(IoError), Url(ParseError), Utf8(FromUtf8Error), Std(StdError), Aes(InvalidLength), OtherRtcpErr(String), OtherRtpErr(String), OtherSrtpErr(String), OtherStunErr(String), OtherTurnErr(String), OtherIceErr(String), OtherDtlsErr(String), OtherSctpErr(String), OtherDataChannelErr(String), OtherInterceptorErr(String), OtherMediaErr(String), OtherMdnsErr(String), OtherSdpErr(String), OtherPeerConnectionErr(String), Other(String),
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ErrBufferFull

§

ErrBufferClosed

§

ErrBufferShort

§

ErrPacketTooBig

§

ErrTimeout

§

ErrClosedListener

§

ErrListenQueueExceeded

§

ErrClosedListenerAcceptCh

§

ErrObsCannotBeNil

§

ErrUseClosedNetworkConn

§

ErrAddrNotUdpAddr

§

ErrLocAddr

§

ErrAlreadyClosed

§

ErrNoRemAddr

§

ErrAddressAlreadyInUse

§

ErrNoSuchUdpConn

§

ErrCannotRemoveUnspecifiedIp

§

ErrNoAddressAssigned

§

ErrNatRequriesMapping

§

ErrMismatchLengthIp

§

ErrNonUdpTranslationNotSupported

§

ErrNoAssociatedLocalAddress

§

ErrNoNatBindingFound

§

ErrHasNoPermission

§

ErrHostnameEmpty

§

ErrFailedToParseIpaddr

§

ErrNoInterface

§

ErrNotFound

§

ErrUnexpectedNetwork

§

ErrCantAssignRequestedAddr

§

ErrUnknownNetwork

§

ErrNoRouterLinked

§

ErrInvalidPortNumber

§

ErrUnexpectedTypeSwitchFailure

§

ErrBindFailed

§

ErrEndPortLessThanStart

§

ErrPortSpaceExhausted

§

ErrVnetDisabled

§

ErrInvalidLocalIpInStaticIps

§

ErrLocalIpBeyondStaticIpsSubset

§

ErrLocalIpNoStaticsIpsAssociated

§

ErrRouterAlreadyStarted

§

ErrRouterAlreadyStopped

§

ErrStaticIpIsBeyondSubnet

§

ErrAddressSpaceExhausted

§

ErrNoIpaddrEth0

§

ErrInvalidMask

§

HandshakeInProgress

§

ContextUnsupported

§

ReservedExportKeyingMaterial

§

CipherSuiteUnset

§

Hash(String)

§

PoisonError(String)

§

WrongMarshalSize

Wrong marshal size.

§

InvalidTotalLost

Packet lost exceeds maximum amount of packets that can possibly be lost.

§

InvalidHeader

Packet contains an invalid header.

§

EmptyCompound

Packet contains empty compound.

§

BadFirstPacket

Invalid first packet in compound packets. First packet should either be a SenderReport packet or ReceiverReport

§

MissingCname

CNAME was not defined.

§

PacketBeforeCname

Packet was defined before CNAME.

§

TooManyReports

Too many reports.

§

TooManyChunks

Too many chunks.

§

TooManySources

Too many sources.

§

PacketTooShort

Packet received is too short.

§

BufferTooShort

Buffer is too short.

§

WrongType

Wrong packet type.

§

SdesTextTooLong

SDES received is too long.

§

SdesMissingType

SDES type is missing.

§

ReasonTooLong

Reason is too long.

§

BadVersion

Invalid packet version.

§

WrongPadding

Invalid padding value.

§

WrongFeedbackType

Wrong feedback message type.

§

WrongPayloadType

Wrong payload type.

§

HeaderTooSmall

Header length is too small.

§

SsrcMustBeZero

Media ssrc was defined as zero.

§

MissingRembIdentifier

Missing REMB identifier.

§

SsrcNumAndLengthMismatch

SSRC number and length mismatches.

§

InvalidSizeOrStartIndex

Invalid size or start index.

§

DeltaExceedLimit

Delta exceeds limit.

§

PacketStatusChunkLength

Packet status chunk is not 2 bytes.

§

InvalidBitrate

§

WrongChunkType

§

BadStructMemberType

§

BadReadParameter

§

ErrHeaderSizeInsufficient

§

ErrHeaderSizeInsufficientForExtension

§

ErrBufferTooSmall

§

ErrHeaderExtensionsNotEnabled

§

ErrHeaderExtensionNotFound

§

ErrRfc8285oneByteHeaderIdrange

§

ErrRfc8285oneByteHeaderSize

§

ErrRfc8285twoByteHeaderIdrange

§

ErrRfc8285twoByteHeaderSize

§

ErrRfc3550headerIdrange

§

ErrShortPacket

§

ErrNilPacket

§

ErrTooManyPDiff

§

ErrTooManySpatialLayers

§

ErrUnhandledNaluType

§

ErrH265CorruptedPacket

§

ErrInvalidH265PacketType

§

ErrPayloadTooSmallForObuExtensionHeader

§

ErrPayloadTooSmallForObuPayloadSize

§

HeaderExtensionPayloadNot32BitWords

§

AudioLevelOverflow

§

PayloadIsNotLargeEnough

§

StapASizeLargerThanBuffer(usize, usize)

§

NaluTypeIsNotHandled(u8)

§

ErrDuplicated

§

ErrShortSrtpMasterKey

§

ErrShortSrtpMasterSalt

§

ErrNoSuchSrtpProfile

§

ErrNonZeroKdrNotSupported

§

ErrExporterWrongLabel

§

ErrNoConfig

§

ErrNoConn

§

ErrFailedToVerifyAuthTag

§

ErrTooShortRtcp

§

ErrPayloadDiffers

§

ErrStartedChannelUsedIncorrectly

§

ErrStreamNotInited

§

ErrStreamAlreadyClosed

§

ErrStreamAlreadyInited

§

ErrFailedTypeAssertion

§

UnsupportedIndexOverKdr

§

SrtpMasterKeyLength(usize, usize)

§

SrtpSaltLength(usize, usize)

§

ExtMapParse(String)

§

SsrcMissingFromSrtp(u32)

§

SrtpSsrcDuplicated(u32, u16)

§

SrtcpSsrcDuplicated(u32, usize)

§

SsrcMissingFromSrtcp(u32)

§

StreamWithSsrcExists(u32)

§

SessionRtpRtcpTypeMismatch

§

SessionEof

§

SrtpTooSmall(usize, usize)

§

SrtcpTooSmall(usize, usize)

§

RtpFailedToVerifyAuthTag

§

RtcpFailedToVerifyAuthTag

§

SessionSrtpAlreadyClosed

§

InvalidRtpStream

§

InvalidRtcpStream

§

ErrAttributeNotFound

§

ErrTransactionStopped

§

ErrTransactionNotExists

§

ErrTransactionExists

§

ErrAgentClosed

§

ErrTransactionTimeOut

§

ErrNoDefaultReason

§

ErrUnexpectedEof

§

ErrAttributeSizeInvalid

§

ErrAttributeSizeOverflow

§

ErrDecodeToNil

§

ErrUnexpectedHeaderEof

§

ErrIntegrityMismatch

§

ErrFingerprintMismatch

§

ErrFingerprintBeforeIntegrity

§

ErrBadUnknownAttrsSize

§

ErrBadIpLength

§

ErrNoConnection

§

ErrClientClosed

§

ErrNoAgent

§

ErrCollectorClosed

§

ErrUnsupportedNetwork

§

ErrInvalidUrl

§

ErrSchemeType

§

ErrHost

§

ErrRelayAddressInvalid

§

ErrNoAvailableConns

§

ErrConnUnset

§

ErrListenerUnset

§

ErrListeningAddressInvalid

§

ErrRelayAddressGeneratorUnset

§

ErrMaxRetriesExceeded

§

ErrMaxPortNotZero

§

ErrMinPortNotZero

§

ErrMaxPortLessThanMinPort

§

ErrNilConn

§

ErrTodo

§

ErrAlreadyListening

§

ErrFailedToClose

§

ErrFailedToRetransmitTransaction

§

ErrAllRetransmissionsFailed

§

ErrChannelBindNotFound

§

ErrStunserverAddressNotSet

§

ErrOneAllocateOnly

§

ErrAlreadyAllocated

§

ErrNonStunmessage

§

ErrFailedToDecodeStun

§

ErrUnexpectedStunrequestMessage

§

ErrInvalidChannelNumber

§

ErrBadChannelDataLength

§

ErrInvalidRequestedFamilyValue

§

ErrFakeErr

§

ErrClosed

§

ErrUdpaddrCast

§

ErrDoubleLock

§

ErrTransactionClosed

§

ErrWaitForResultOnNonResultTransaction

§

ErrFailedToBuildRefreshRequest

§

ErrFailedToRefreshAllocation

§

ErrFailedToGetLifetime

§

ErrShortBuffer

§

ErrUnexpectedResponse

§

ErrAllocatePacketConnMustBeSet

§

ErrAllocateConnMustBeSet

§

ErrLeveledLoggerMustBeSet

§

ErrSameChannelDifferentPeer

§

ErrNilFiveTuple

§

ErrNilFiveTupleSrcAddr

§

ErrNilFiveTupleDstAddr

§

ErrNilTurnSocket

§

ErrLifetimeZero

§

ErrDupeFiveTuple

§

ErrFailedToCastUdpaddr

§

ErrFailedToGenerateNonce

§

ErrFailedToSendError

§

ErrDuplicatedNonce

§

ErrNoSuchUser

§

ErrUnexpectedClass

§

ErrUnexpectedMethod

§

ErrFailedToHandle

§

ErrUnhandledStunpacket

§

ErrUnableToHandleChannelData

§

ErrFailedToCreateStunpacket

§

ErrFailedToCreateChannelData

§

ErrRelayAlreadyAllocatedForFiveTuple

§

ErrRequestedTransportMustBeUdp

§

ErrNoDontFragmentSupport

§

ErrRequestWithReservationTokenAndEvenPort

§

ErrNoAllocationFound

§

ErrNoPermission

§

ErrShortWrite

§

ErrNoSuchChannelBind

§

ErrFailedWriteSocket

§

ErrUnknownType

Indicates an error with Unknown info.

§

ErrStunQuery

Indicates query arguments are provided in a STUN URL.

§

ErrInvalidQuery

Indicates an malformed query is provided.

§

ErrPort

Indicates malformed port is provided.

§

ErrLocalUfragInsufficientBits

Indicates local username fragment insufficient bits are provided. Have to be at least 24 bits long.

§

ErrLocalPwdInsufficientBits

Indicates local passoword insufficient bits are provided. Have to be at least 128 bits long.

§

ErrProtoType

Indicates an unsupported transport type was provided.

§

ErrNoCandidatePairs

Indicates agent does not have a valid candidate pair.

§

ErrCanceledByCaller

Indicates agent connection was canceled by the caller.

§

ErrMultipleStart

Indicates agent was started twice.

§

ErrRemoteUfragEmpty

Indicates agent was started with an empty remote ufrag.

§

ErrRemotePwdEmpty

Indicates agent was started with an empty remote pwd.

§

ErrNoOnCandidateHandler

Indicates agent was started without on_candidate.

§

ErrMultipleGatherAttempted

Indicates GatherCandidates has been called multiple times.

§

ErrUsernameEmpty

Indicates agent was give TURN URL with an empty Username.

§

ErrPasswordEmpty

Indicates agent was give TURN URL with an empty Password.

§

ErrAddressParseFailed

Indicates we were unable to parse a candidate address.

§

ErrLiteUsingNonHostCandidates

Indicates that non host candidates were selected for a lite agent.

§

ErrLiteSupportOnly

Indicates that current ice agent supports Lite only

§

ErrUselessUrlsProvided

Indicates that one or more URL was provided to the agent but no host candidate required them.

§

ErrUnsupportedNat1to1IpCandidateType

Indicates that the specified NAT1To1IPCandidateType is unsupported.

§

ErrInvalidNat1to1IpMapping

Indicates that the given 1:1 NAT IP mapping is invalid.

§

ErrExternalMappedIpNotFound

IPNotFound in NAT1To1IPMapping.

§

ErrMulticastDnsWithNat1to1IpMapping

Indicates that the mDNS gathering cannot be used along with 1:1 NAT IP mapping for host candidate.

§

ErrIneffectiveNat1to1IpMappingHost

Indicates that 1:1 NAT IP mapping for host candidate is requested, but the host candidate type is disabled.

§

ErrIneffectiveNat1to1IpMappingSrflx

Indicates that 1:1 NAT IP mapping for srflx candidate is requested, but the srflx candidate type is disabled.

§

ErrInvalidMulticastDnshostName

Indicates an invalid MulticastDNSHostName.

§

ErrMulticastDnsNotSupported

Indicates mdns is not supported.

§

ErrRestartWhenGathering

Indicates Restart was called when Agent is in GatheringStateGathering.

§

ErrRunCanceled

Indicates a run operation was canceled by its individual done.

§

ErrTcpMuxNotInitialized

Initialized Indicates TCPMux is not initialized and that invalidTCPMux is used.

§

ErrTcpRemoteAddrAlreadyExists

Indicates we already have the connection with same remote addr.

§

ErrSendPacket

§

ErrAttributeTooShortIceCandidate

§

ErrParseComponent

§

ErrParsePriority

§

ErrParsePort

§

ErrParseRelatedAddr

§

ErrParseType

§

ErrUnknownCandidateType

§

ErrGetXorMappedAddrResponse

§

ErrConnectionAddrAlreadyExist

§

ErrReadingStreamingPacket

§

ErrWriting

§

ErrClosingConnection

§

ErrDetermineNetworkType

§

ErrMissingProtocolScheme

§

ErrTooManyColonsAddr

§

ErrRead

§

ErrUnknownRole

§

ErrMismatchUsername

§

ErrIceWriteStunMessage

§

ErrUrlParse

§

ErrCandidateIpNotFound

§

ErrConnClosed

§

ErrDeadlineExceeded

§

ErrContextUnsupported

§

ErrDtlspacketInvalidLength

§

ErrHandshakeInProgress

§

ErrInvalidContentType

§

ErrInvalidMac

§

ErrInvalidPacketLength

§

ErrReservedExportKeyingMaterial

§

ErrCertificateVerifyNoCertificate

§

ErrCipherSuiteNoIntersection

§

ErrCipherSuiteUnset

§

ErrClientCertificateNotVerified

§

ErrClientCertificateRequired

§

ErrClientNoMatchingSrtpProfile

§

ErrClientRequiredButNoServerEms

§

ErrCompressionMethodUnset

§

ErrCookieMismatch

§

ErrCookieTooLong

§

ErrIdentityNoPsk

§

ErrInvalidCertificate

§

ErrInvalidCipherSpec

§

ErrInvalidCipherSuite

§

ErrInvalidClientKeyExchange

§

ErrInvalidCompressionMethod

§

ErrInvalidEcdsasignature

§

ErrInvalidEllipticCurveType

§

ErrInvalidExtensionType

§

ErrInvalidHashAlgorithm

§

ErrInvalidNamedCurve

§

ErrInvalidPrivateKey

§

ErrNamedCurveAndPrivateKeyMismatch

§

ErrInvalidSniFormat

§

ErrInvalidSignatureAlgorithm

§

ErrKeySignatureMismatch

§

ErrNilNextConn

§

ErrNoAvailableCipherSuites

§

ErrNoAvailableSignatureSchemes

§

ErrNoCertificates

§

ErrNoConfigProvided

§

ErrNoSupportedEllipticCurves

§

ErrUnsupportedProtocolVersion

§

ErrPskAndCertificate

§

ErrPskAndIdentityMustBeSetForClient

§

ErrRequestedButNoSrtpExtension

§

ErrServerMustHaveCertificate

§

ErrServerNoMatchingSrtpProfile

§

ErrServerRequiredButNoClientEms

§

ErrVerifyDataMismatch

§

ErrHandshakeMessageUnset

§

ErrInvalidFlight

§

ErrKeySignatureGenerateUnimplemented

§

ErrKeySignatureVerifyUnimplemented

§

ErrLengthMismatch

§

ErrNotEnoughRoomForNonce

§

ErrNotImplemented

§

ErrSequenceNumberOverflow

§

ErrUnableToMarshalFragmented

§

ErrInvalidFsmTransition

§

ErrApplicationDataEpochZero

§

ErrUnhandledContextType

§

ErrContextCanceled

§

ErrEmptyFragment

§

ErrAlertFatalOrClose

§

ErrFragmentBufferOverflow

Fields

§new_size: usize
§max_size: usize
§

ErrClientTransportNotSet

§

Sec1(Error)

§

P256(P256Error)

§

RcGen(Error)

§

InvalidPEM(String)

Error parsing a given PEM string.

§

EndpointStopping

The endpoint can no longer create new connections

Indicates that a necessary component of the endpoint has been dropped or otherwise disabled.

§

TooManyConnections

The number of active connections on the local endpoint is at the limit

Try using longer connection IDs.

§

InvalidDnsName(String)

The domain name supplied was malformed

§

InvalidRemoteAddress(SocketAddr)

The remote SocketAddr supplied was malformed

Examples include attempting to connect to port 0, or using an inappropriate address family.

§

NoClientConfig

No client configuration was set up

§

NoServerConfig

No server configuration was set up

§

ErrChunkHeaderTooSmall

§

ErrChunkHeaderNotEnoughSpace

§

ErrChunkHeaderPaddingNonZero

§

ErrChunkHeaderInvalidLength

§

ErrChunkTypeNotAbort

§

ErrBuildAbortChunkFailed

§

ErrChunkTypeNotCookieAck

§

ErrChunkTypeNotCookieEcho

§

ErrChunkTypeNotCt

§

ErrBuildErrorChunkFailed

§

ErrMarshalStreamFailed

§

ErrChunkTooShort

§

ErrChunkTypeNotForwardTsn

§

ErrChunkTypeNotHeartbeat

§

ErrChunkTypeNotHeartbeatAck

§

ErrHeartbeatNotLongEnoughInfo

§

ErrParseParamTypeFailed

§

ErrHeartbeatParam

§

ErrHeartbeatChunkUnmarshal

§

ErrUnimplemented

§

ErrHeartbeatAckParams

§

ErrHeartbeatAckNotHeartbeatInfo

§

ErrHeartbeatAckMarshalParam

§

ErrErrorCauseTooSmall

§

ErrParamTypeUnhandled

§

ErrParamTypeUnexpected

§

ErrParamHeaderTooShort

§

ErrParamHeaderSelfReportedLengthShorter

§

ErrParamHeaderSelfReportedLengthLonger

§

ErrParamHeaderParseFailed

§

ErrParamPacketTooShort

§

ErrSsnResetRequestParamTooShort

§

ErrReconfigRespParamTooShort

§

ErrInvalidAlgorithmType

§

ErrInitChunkParseParamTypeFailed

§

ErrInitChunkUnmarshalParam

§

ErrInitAckMarshalParam

§

ErrChunkTypeNotTypeInit

§

ErrChunkValueNotLongEnough

§

ErrChunkTypeInitFlagZero

§

ErrChunkTypeInitUnmarshalFailed

§

ErrChunkTypeInitMarshalFailed

§

ErrChunkTypeInitInitiateTagZero

§

ErrInitInboundStreamRequestZero

§

ErrInitOutboundStreamRequestZero

§

ErrInitAdvertisedReceiver1500

§

ErrChunkPayloadSmall

§

ErrChunkTypeNotPayloadData

§

ErrChunkTypeNotReconfig

§

ErrChunkReconfigInvalidParamA

§

ErrChunkParseParamTypeFailed

§

ErrChunkMarshalParamAReconfigFailed

§

ErrChunkMarshalParamBReconfigFailed

§

ErrChunkTypeNotSack

§

ErrSackSizeNotLargeEnoughInfo

§

ErrInvalidChunkSize

§

ErrChunkTypeNotShutdown

§

ErrChunkTypeNotShutdownAck

§

ErrChunkTypeNotShutdownComplete

§

ErrPacketRawTooSmall

§

ErrParseSctpChunkNotEnoughData

§

ErrUnmarshalUnknownChunkType

§

ErrChecksumMismatch

§

ErrUnexpectedChuckPoppedUnordered

§

ErrUnexpectedChuckPoppedOrdered

§

ErrUnexpectedQState

§

ErrTryAgain

§

ErrAbortChunk(String)

§

ErrShutdownNonEstablished

§

ErrAssociationClosedBeforeConn

§

ErrAssociationInitFailed

§

ErrAssociationHandshakeClosed

§

ErrSilentlyDiscard

§

ErrInitNotStoredToSend

§

ErrCookieEchoNotStoredToSend

§

ErrSctpPacketSourcePortZero

§

ErrSctpPacketDestinationPortZero

§

ErrInitChunkBundled

§

ErrInitChunkVerifyTagNotZero

§

ErrHandleInitState

§

ErrInitAckNoCookie

§

ErrStreamAlreadyExist

§

ErrStreamCreateFailed

§

ErrInflightQueueTsnPop

§

ErrTsnRequestNotExist

§

ErrResetPacketInStateNotExist

§

ErrParameterType

§

ErrPayloadDataStateNotExist

§

ErrChunkTypeUnhandled

§

ErrHandshakeInitAck

§

ErrHandshakeCookieEcho

§

ErrOutboundPacketTooLarge

§

ErrStreamClosed

§

ErrStreamNotExisted

§

ErrAssociationNotExisted

§

ErrEof

§

ErrInvalidSystemTime

§

ErrNetConnRead

§

ErrMaxDataChannelID

§

UnexpectedEndOfBuffer

Fields

§expected: usize
§actual: usize
§

InvalidMessageType(u8)

§

InvalidChannelType(u8)

§

InvalidPayloadProtocolIdentifier(u8)

§

UnknownProtocol

§

AesGcm(Error)

§

ParseIp(AddrParseError)

§

ParseInt(ParseIntError)

§

Io(IoError)

§

Url(ParseError)

§

Utf8(FromUtf8Error)

§

Std(StdError)

§

Aes(InvalidLength)

§

OtherRtcpErr(String)

§

OtherRtpErr(String)

§

OtherSrtpErr(String)

§

OtherStunErr(String)

§

OtherTurnErr(String)

§

OtherIceErr(String)

§

OtherDtlsErr(String)

§

OtherSctpErr(String)

§

OtherDataChannelErr(String)

§

OtherInterceptorErr(String)

§

OtherMediaErr(String)

§

OtherMdnsErr(String)

§

OtherSdpErr(String)

§

OtherPeerConnectionErr(String)

§

Other(String)

Implementations§

Source§

impl Error

Source

pub fn from_std<T>(error: T) -> Self
where T: Error + Send + Sync + 'static,

Source

pub fn downcast_ref<T: Error + 'static>(&self) -> Option<&T>

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AddrParseError> for Error

Source§

fn from(source: AddrParseError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for Error

Source§

fn from(source: FromUtf8Error) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidLength> for Error

Source§

fn from(source: InvalidLength) -> Self

Converts to this type from the input type.
Source§

impl From<ParseError> for Error

Source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseIntError> for Error

Source§

fn from(source: ParseIntError) -> Self

Converts to this type from the input type.
Source§

impl<T> From<PoisonError<T>> for Error

Source§

fn from(e: PoisonError<T>) -> Self

Converts to this type from the input type.
Source§

impl From<SystemTimeError> for Error

Source§

fn from(e: SystemTimeError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Error

Source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,