#[non_exhaustive]pub enum Error {
Show 691 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,
InvalidBlockSize,
ErrHeaderSizeInsufficient,
ErrHeaderSizeInsufficientForExtension,
ErrBufferTooSmall,
ErrHeaderExtensionsNotEnabled,
ErrHeaderExtensionNotFound,
ErrRfc8285oneByteHeaderIdrange,
ErrRfc8285oneByteHeaderSize,
ErrRfc8285twoByteHeaderIdrange,
ErrRfc8285twoByteHeaderSize,
ErrRfc3550headerIdrange,
ErrShortPacket,
ErrNilPacket,
ErrTooManyPDiff,
ErrTooManySpatialLayers,
ErrUnhandledNaluType,
ErrH265CorruptedPacket,
ErrInvalidH265PacketType,
ErrPayloadTooSmallForObuExtensionHeader,
ErrPayloadTooSmallForObuPayloadSize,
HeaderExtensionPayloadNot32BitWords,
AudioLevelOverflow,
PlayoutDelayOverflow,
PayloadIsNotLargeEnough,
StapASizeLargerThanBuffer(usize, usize),
NaluTypeIsNotHandled(u8),
ErrDuplicated,
ErrShortSrtpMasterKey,
ErrShortSrtpMasterSalt,
ErrNoSuchSrtpProfile,
ErrNonZeroKdrNotSupported,
ErrExporterWrongLabel,
ErrNoConfig,
ErrNoConn,
ErrFailedToVerifyAuthTag,
ErrTooShortRtp,
ErrTooShortRtcp,
ErrPayloadDiffers,
ErrStartedChannelUsedIncorrectly,
ErrStreamNotInited,
ErrStreamAlreadyClosed,
ErrStreamAlreadyInited,
ErrFailedTypeAssertion,
ErrExceededMaxPackets,
UnsupportedIndexOverKdr,
InvalidMasterKeyLength,
InvalidMasterSaltLength,
UnsupportedOutLength,
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,
RtcpInvalidLengthAuthTag(usize, usize),
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,
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 {
typ: u16,
},
ErrParamTypeUnexpected,
ErrParamHeaderTooShort,
ErrParamHeaderSelfReportedLengthShorter,
ErrParamHeaderSelfReportedLengthLonger,
ErrParamHeaderParseFailed,
ErrParamPacketTooShort,
ErrSsnResetRequestParamTooShort,
ErrUnmarshalSsnResetRequestParam,
ErrReconfigRespParamTooShort,
ErrUnmarshalReconfigRespParam,
ErrInvalidAlgorithmType,
ErrInitChunkParseParamTypeFailed,
ErrInitChunkUnmarshalParam,
ErrInitAckMarshalParam,
ErrChunkTypeNotTypeInit,
ErrChunkValueNotLongEnough,
ErrChunkTypeInitFlagZero,
ErrChunkTypeInitUnmarshalFailed,
ErrChunkTypeInitMarshalFailed,
ErrChunkTypeInitInitiateTagZero,
ErrInitInboundStreamRequestZero,
ErrInitOutboundStreamRequestZero,
ErrInitAdvertisedReceiver1500,
ErrChunkPayloadSmall,
ErrChunkTypeNotPayloadData,
ErrChunkUnmarshalPayloadData,
ErrChunkTypeNotReconfig,
ErrChunkReconfigInvalidParamA,
ErrChunkParseParamTypeFailed,
ErrChunkMarshalParamAReconfigFailed,
ErrChunkMarshalParamBReconfigFailed,
ErrChunkTypeNotSack,
ErrSackSizeNotLargeEnoughInfo,
ErrChunkUnmarshalSack,
ErrInvalidChunkSize,
ErrChunkTypeNotShutdown,
ErrChunkUnmarshalShutdown,
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,
ErrTransportNoExisted,
ErrEof,
ErrInvalidSystemTime,
ErrNetConnRead,
ErrMaxDataChannelID,
UnexpectedEndOfBuffer {
expected: usize,
actual: usize,
},
InvalidMessageType(u8),
InvalidChannelType(u8),
InvalidPayloadProtocolIdentifier(u8),
UnknownProtocol,
ErrNilStream,
ErrIncompleteFrameHeader,
ErrIncompleteFrameData,
ErrIncompleteFileHeader,
ErrSignatureMismatch,
ErrUnknownIVFVersion,
ErrFileNotOpened,
ErrInvalidNilPacket,
ErrBadIDPageSignature,
ErrBadIDPageType,
ErrBadIDPageLength,
ErrBadIDPagePayloadSignature,
ErrShortPageHeader,
ErrBadOpusTagsSignature,
ErrUnsupportedChannelMappingFamily,
ErrDataIsNotH264Stream,
ErrDataIsNotH265Stream,
ErrIoEOF,
ErrMDNSPortNotSupported,
ErrMDNSConnectionClosed,
ErrMDNSQueryNotFound,
ErrNotStarted,
ErrSectionDone,
ErrSectionHeader,
ErrBaseLen,
ErrCalcLen,
ErrReserved,
ErrTooManyPtr,
ErrInvalidPtr,
ErrNilResourceBody,
ErrResourceLen,
ErrSegTooLong,
ErrZeroSegLen,
ErrResTooLong,
ErrTooManyQuestions,
ErrTooManyAnswers,
ErrTooManyAuthorities,
ErrTooManyAdditionals,
ErrNonCanonicalName,
ErrStringTooLong,
ErrCompressedSrv,
ErrEmptyBuilderMsg,
ErrConnectionClosed,
ErrDataChannelClosed,
ErrDataChannelNotOpen,
ErrDataChannelNotExisted,
ErrSendBufferFull,
ErrCertificateExpired,
ErrNoTurnCredentials,
ErrTurnCredentials,
ErrExistingTrack,
ErrTrackNotExisted,
ErrPrivateKeyType,
ErrModifyingPeerIdentity,
ErrModifyingCertificates,
ErrNonCertificate,
ErrModifyingBundlePolicy,
ErrModifyingRTCPMuxPolicy,
ErrModifyingICECandidatePoolSize,
ErrStringSizeLimit,
ErrNegotiatedWithoutID,
ErrRetransmitsOrPacketLifeTime,
ErrCodecNotFound,
ErrNoRemoteDescription,
ErrIncorrectSDPSemantics,
ErrIncorrectSignalingState,
ErrProtocolTooLarge,
ErrSenderNotCreatedByConnection,
ErrSenderInitialTrackIdAlreadySet,
ErrSessionDescriptionNoFingerprint,
ErrSessionDescriptionInvalidFingerprint,
ErrSessionDescriptionConflictingFingerprints,
ErrSessionDescriptionMissingIceUfrag,
ErrSessionDescriptionMissingIcePwd,
ErrSessionDescriptionConflictingIceUfrag,
ErrSessionDescriptionConflictingIcePwd,
ErrNoSRTPProtectionProfile,
ErrFailedToGenerateCertificateFingerprint,
ErrNoCodecsAvailable,
ErrUnsupportedCodec,
InvalidStateError,
InvalidModificationError,
RangeError(String),
ErrSenderWithNoCodecs,
ErrSenderWithNoSSRCs,
ErrRTPSenderNewTrackHasIncorrectKind,
ErrRTPSenderNewTrackHasIncorrectEnvelope,
ErrRTPSenderDataSent,
ErrRTPSenderSeqTransEnabled,
ErrUnbindFailed,
ErrNoPayloaderForCodec,
ErrRegisterHeaderExtensionInvalidDirection,
ErrInvalidDirection,
ErrRegisterHeaderExtensionNoFreeID,
ErrSimulcastProbeOverflow,
ErrDetachNotEnabled,
ErrDetachBeforeOpened,
ErrDtlsTransportNotStarted,
ErrDtlsKeyExtractionFailed,
ErrFailedToStartSRTP,
ErrFailedToStartSRTCP,
ErrInvalidDTLSStart,
ErrNoRemoteCertificate,
ErrIdentityProviderNotImplemented,
ErrNoMatchingCertificateFingerprint,
ErrUnsupportedFingerprintAlgorithm,
ErrICEConnectionNotStarted,
ErrICECandidateTypeUnknown,
ErrICEInvalidConvertCandidateType,
ErrICEAgentNotExist,
ErrICECandidatesConversionFailed,
ErrICERoleUnknown,
ErrICEProtocolUnknown,
ErrICEGathererNotStarted,
ErrNetworkTypeUnknown,
ErrSDPDoesNotMatchOffer,
ErrSDPDoesNotMatchAnswer,
ErrPeerConnSDPTypeInvalidValue,
ErrPeerConnStateChangeInvalid,
ErrPeerConnStateChangeUnhandled,
ErrPeerConnSDPTypeInvalidValueSetLocalDescription,
ErrPeerConnRemoteDescriptionWithoutMidValue,
ErrPeerConnLocalDescriptionWithoutMidValue,
ErrPeerConnRemoteDescriptionNil,
ErrPeerConnLocalDescriptionNil,
ErrPeerConnSingleMediaSectionHasExplicitSSRC,
ErrPeerConnRemoteSSRCAddTransceiver,
ErrPeerConnSimulcastMidRTPExtensionRequired,
ErrPeerConnSimulcastStreamIDRTPExtensionRequired,
ErrPeerConnSimulcastIncomingSSRCFailed,
ErrPeerConnStatsCollectionFailed,
ErrPeerConnAddTransceiverFromKindOnlyAcceptsOne,
ErrPeerConnAddTransceiverFromTrackOnlyAcceptsOne,
ErrPeerConnAddTransceiverFromKindSupport,
ErrPeerConnAddTransceiverFromTrackSupport,
ErrPeerConnSetIdentityProviderNotImplemented,
ErrPeerConnWriteRTCPOpenWriteStream,
ErrPeerConnTransceiverMidNil,
ErrRTPReceiverDTLSTransportNil,
ErrRTPReceiverReceiveAlreadyCalled,
ErrRTPReceiverWithSSRCTrackStreamNotFound,
ErrRTPReceiverForSSRCTrackStreamNotFound,
ErrRTPReceiverForRIDTrackStreamNotFound,
ErrRTPReceiverStateChangeInvalid,
ErrRTPSenderTrackNil,
ErrRTPSenderNotExisted,
ErrRTPSenderTrackRemoved,
ErrRTPSenderRidNil,
ErrRTPSenderNoBaseEncoding,
ErrRTPSenderBaseEncodingMismatch,
ErrRTPSenderRIDCollision,
ErrRTPSenderNoTrackForRID,
ErrRTPReceiverNotExisted,
ErrRTPSenderDTLSTransportNil,
ErrRTPSenderSendAlreadyCalled,
ErrRTPTransceiverNotExisted,
ErrRTPTransceiverCannotChangeMid,
ErrRTPTransceiverSetSendingInvalidState,
ErrRTPTransceiverCodecUnsupported,
ErrSCTPTransportDTLS,
ErrSDPZeroTransceivers,
ErrSDPMediaSectionMediaDataChanInvalid,
ErrSDPMediaSectionTrackInvalid,
ErrSettingEngineSetAnsweringDTLSRole,
ErrSignalingStateCannotRollback,
ErrSignalingStateProposedTransitionInvalid(String),
ErrStatsICECandidateStateInvalid,
ErrICETransportNotInNew,
ErrCertificatePEMFormatError,
ErrSCTPNotEstablished,
ErrClosedPipe,
ErrInterceptorNotBind,
ErrExcessiveRetries,
ErrRTPTooShort,
SimulcastRidParseErrorSyntaxIdDirSplit,
SimulcastRidParseErrorUnknownDirection,
CodecNotFound,
MissingWhitespace,
MissingColon,
PayloadTypeNotFound,
SdpInvalidSyntax(String),
SdpInvalidValue(String),
SdpEmptyTimeDescription,
ParseExtMap(String),
SyntaxError {
s: String,
p: usize,
},
Sec1(Error),
P256(P256Error),
RcGen(Error),
InvalidPEM(String),
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),
}Expand description
Unified error type for all WebRTC sub-protocols.
Aggregates errors from every layer of the WebRTC stack — buffers, RTP/RTCP, SRTP, STUN, TURN, ICE, DTLS, SCTP, data channels, SDP, mDNS, and the top-level peer connection — into a single enum so callers only need to handle one error type.
The enum is #[non_exhaustive]: new variants may be added in future
releases without a semver-breaking change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ErrBufferFull
Buffer: full.
ErrBufferClosed
Buffer: closed.
ErrBufferShort
Buffer: short.
ErrPacketTooBig
Packet too big.
ErrTimeout
I/O timeout.
ErrClosedListener
UDP: listener closed.
ErrListenQueueExceeded
UDP: listen queue exceeded.
ErrClosedListenerAcceptCh
UDP: listener accept ch closed.
ErrObsCannotBeNil
Obs cannot be nil.
ErrUseClosedNetworkConn
Se of closed network connection.
ErrAddrNotUdpAddr
Addr is not a net.UDPAddr.
ErrLocAddr
Something went wrong with locAddr.
ErrAlreadyClosed
Already closed.
ErrNoRemAddr
No remAddr defined.
ErrAddressAlreadyInUse
Address already in use.
ErrNoSuchUdpConn
No such UDPConn.
ErrCannotRemoveUnspecifiedIp
Cannot remove unspecified IP by the specified IP.
ErrNoAddressAssigned
No address assigned.
ErrNatRequriesMapping
1:1 NAT requires more than one mapping.
ErrMismatchLengthIp
Length mismtach between mappedIPs and localIPs.
ErrNonUdpTranslationNotSupported
Non-udp translation is not supported yet.
ErrNoAssociatedLocalAddress
No associated local address.
ErrNoNatBindingFound
No NAT binding found.
ErrHasNoPermission
Has no permission.
ErrHostnameEmpty
Host name must not be empty.
ErrFailedToParseIpaddr
Failed to parse IP address.
ErrNoInterface
No interface is available.
ErrNotFound
Not found.
ErrUnexpectedNetwork
Unexpected network.
ErrCantAssignRequestedAddr
Can’t assign requested address.
ErrUnknownNetwork
Unknown network.
ErrNoRouterLinked
No router linked.
ErrInvalidPortNumber
Invalid port number.
ErrUnexpectedTypeSwitchFailure
Unexpected type-switch failure.
ErrBindFailed
Bind failed.
ErrEndPortLessThanStart
End port is less than the start.
ErrPortSpaceExhausted
Port space exhausted.
ErrVnetDisabled
Vnet is not enabled.
ErrInvalidLocalIpInStaticIps
Invalid local IP in static_ips.
ErrLocalIpBeyondStaticIpsSubset
Mapped in static_ips is beyond subnet.
ErrLocalIpNoStaticsIpsAssociated
All static_ips must have associated local IPs.
ErrRouterAlreadyStarted
Router already started.
ErrRouterAlreadyStopped
Router already stopped.
ErrStaticIpIsBeyondSubnet
Static IP is beyond subnet.
ErrAddressSpaceExhausted
Address space exhausted.
ErrNoIpaddrEth0
No IP address is assigned for eth0.
ErrInvalidMask
Invalid mask.
HandshakeInProgress
TLS handshake is in progress.
ContextUnsupported
Context is not supported for export_keying_material.
ReservedExportKeyingMaterial
Export_keying_material can not be used with a reserved label.
CipherSuiteUnset
No cipher suite for export_keying_material.
Hash(String)
Export_keying_material hash.
PoisonError(String)
Mutex poison.
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
Invalid bitrate.
WrongChunkType
Wrong chunk type.
BadStructMemberType
Struct contains unexpected member type.
BadReadParameter
Cannot read into non-pointer.
InvalidBlockSize
Invalid block size.
ErrHeaderSizeInsufficient
RTP header size insufficient.
ErrHeaderSizeInsufficientForExtension
RTP header size insufficient for extension.
ErrBufferTooSmall
Buffer too small.
ErrHeaderExtensionsNotEnabled
Extension not enabled.
ErrHeaderExtensionNotFound
Extension not found.
ErrRfc8285oneByteHeaderIdrange
Header extension id must be between 1 and 14 for RFC 5285 extensions.
ErrRfc8285oneByteHeaderSize
Header extension payload must be 16bytes or less for RFC 5285 one byte extensions.
ErrRfc8285twoByteHeaderIdrange
Header extension id must be between 1 and 255 for RFC 5285 extensions.
ErrRfc8285twoByteHeaderSize
Header extension payload must be 255bytes or less for RFC 5285 two byte extensions.
ErrRfc3550headerIdrange
Header extension id must be 0 for none RFC 5285 extensions.
ErrShortPacket
Packet is not large enough.
ErrNilPacket
Invalid nil packet.
ErrTooManyPDiff
Too many PDiff.
ErrTooManySpatialLayers
Too many spatial layers.
ErrUnhandledNaluType
NALU Type is unhandled.
ErrH265CorruptedPacket
Corrupted H265 packet.
ErrInvalidH265PacketType
Invalid H265 packet type.
ErrPayloadTooSmallForObuExtensionHeader
Payload is too small for OBU extension header.
ErrPayloadTooSmallForObuPayloadSize
Payload is too small for OBU payload size.
HeaderExtensionPayloadNot32BitWords
Extension_payload must be in 32-bit words.
AudioLevelOverflow
Audio level overflow.
PlayoutDelayOverflow
Playout delay overflow.
PayloadIsNotLargeEnough
Payload is not large enough.
StapASizeLargerThanBuffer(usize, usize)
STAP-A declared size is larger than buffer.
NaluTypeIsNotHandled(u8)
NALU type is currently not handled.
ErrDuplicated
Duplicated packet.
ErrShortSrtpMasterKey
SRTP master key is not long enough.
ErrShortSrtpMasterSalt
SRTP master salt is not long enough.
ErrNoSuchSrtpProfile
No such SRTP Profile.
ErrNonZeroKdrNotSupported
IndexOverKdr > 0 is not supported yet.
ErrExporterWrongLabel
Exporter called with wrong label.
ErrNoConfig
No config provided.
ErrNoConn
No conn provided.
ErrFailedToVerifyAuthTag
Failed to verify auth tag.
ErrTooShortRtp
Packet is too short to be RTP packet.
ErrTooShortRtcp
Packet is too short to be RTCP packet.
ErrPayloadDiffers
Payload differs.
ErrStartedChannelUsedIncorrectly
Started channel used incorrectly, should only be closed.
ErrStreamNotInited
Stream has not been inited, unable to close.
ErrStreamAlreadyClosed
Stream is already closed.
ErrStreamAlreadyInited
Stream is already inited.
ErrFailedTypeAssertion
Failed to cast child.
ErrExceededMaxPackets
Exceeded the maximum number of packets.
UnsupportedIndexOverKdr
Index_over_kdr > 0 is not supported yet.
InvalidMasterKeyLength
Invalid master key length for AES_256_cm.
InvalidMasterSaltLength
Invalid master salt length for AES_256_cm.
UnsupportedOutLength
Out_len > 32 is not supported for AES_256_cm.
SrtpMasterKeyLength(usize, usize)
SRTP Master Key must be len , got.
SrtpSaltLength(usize, usize)
SRTP Salt must be len , got.
ExtMapParse(String)
SyntaxError.
SsrcMissingFromSrtp(u32)
SSRC not exist in SRTP_SSRC_state.
SrtpSsrcDuplicated(u32, u16)
SRTP SSRC= index=: duplicated.
SrtcpSsrcDuplicated(u32, usize)
Srtcp SSRC= index=: duplicated.
SsrcMissingFromSrtcp(u32)
SSRC not exist in srtcp_SSRC_state.
StreamWithSsrcExists(u32)
Stream with SSRC exists.
SessionRtpRtcpTypeMismatch
Session RTP/RTCP type must be same as input buffer.
SessionEof
Session EOF.
SrtpTooSmall(usize, usize)
Too short SRTP packet: only bytes, expected > bytes.
SrtcpTooSmall(usize, usize)
Too short SRTCP packet: only bytes, expected > bytes.
RtpFailedToVerifyAuthTag
Failed to verify RTP auth tag.
RtcpInvalidLengthAuthTag(usize, usize)
Too short auth tag: only bytes, expected > bytes.
RtcpFailedToVerifyAuthTag
Failed to verify RTCP auth tag.
SessionSrtpAlreadyClosed
SessionSRTP has been closed.
InvalidRtpStream
This stream is not a RTPStream.
InvalidRtcpStream
This stream is not a RTCPStream.
ErrAttributeNotFound
Attribute not found.
ErrTransactionStopped
Transaction is stopped.
ErrTransactionNotExists
Transaction not exists.
ErrTransactionExists
Transaction exists with same id.
ErrAgentClosed
Agent is closed.
ErrTransactionTimeOut
Transaction is timed out.
ErrNoDefaultReason
No default reason for ErrorCode.
ErrUnexpectedEof
Unexpected EOF.
ErrAttributeSizeInvalid
Attribute size is invalid.
ErrAttributeSizeOverflow
Attribute size overflow.
ErrDecodeToNil
Attempt to decode to nil message.
ErrUnexpectedHeaderEof
Unexpected EOF: not enough bytes to read header.
ErrIntegrityMismatch
Integrity check failed.
ErrFingerprintMismatch
Fingerprint check failed.
ErrFingerprintBeforeIntegrity
FINGERPRINT before MESSAGE-INTEGRITY attribute.
ErrBadUnknownAttrsSize
Bad UNKNOWN-ATTRIBUTES size.
ErrBadIpLength
Invalid length of IP value.
ErrNoConnection
No connection provided.
ErrClientClosed
Client is closed.
ErrNoAgent
No agent is set.
ErrCollectorClosed
Collector is closed.
ErrUnsupportedNetwork
Unsupported network.
ErrInvalidUrl
Invalid URL.
ErrSchemeType
Unknown scheme type.
ErrHost
Invalid hostname.
ErrRelayAddressInvalid
TURN: RelayAddress must be valid IP to use RelayAddressGeneratorStatic.
ErrNoAvailableConns
TURN: PacketConnConfigs and ConnConfigs are empty, unable to proceed.
ErrConnUnset
TURN: PacketConnConfig must have a non-nil Conn.
ErrListenerUnset
TURN: ListenerConfig must have a non-nil Listener.
ErrListeningAddressInvalid
TURN: RelayAddressGenerator has invalid ListeningAddress.
ErrRelayAddressGeneratorUnset
TURN: RelayAddressGenerator in RelayConfig is unset.
ErrMaxRetriesExceeded
TURN: max retries exceeded.
ErrMaxPortNotZero
TURN: MaxPort must be not 0.
ErrMinPortNotZero
TURN: MaxPort must be not 0.
ErrMaxPortLessThanMinPort
TURN: MaxPort less than MinPort.
ErrNilConn
TURN: relay_conn cannot not be nil.
ErrTodo
TURN: TODO.
ErrAlreadyListening
TURN: already listening.
ErrFailedToClose
TURN: Server failed to close.
ErrFailedToRetransmitTransaction
TURN: failed to retransmit transaction.
ErrAllRetransmissionsFailed
All retransmissions failed.
ErrChannelBindNotFound
No binding found for channel.
ErrStunserverAddressNotSet
STUN server address is not set for the client.
ErrOneAllocateOnly
Only one Allocate caller is allowed.
ErrAlreadyAllocated
Already allocated.
ErrNonStunmessage
Non-STUN message from STUN server.
ErrFailedToDecodeStun
Failed to decode STUN message.
ErrUnexpectedStunrequestMessage
Unexpected STUN request message.
ErrInvalidChannelNumber
Channel number not in [0x4000, 0x7FFF].
ErrBadChannelDataLength
ChannelData length != len(Data).
ErrInvalidRequestedFamilyValue
Invalid value for requested family attribute.
ErrFakeErr
Fake error.
ErrClosed
Use of closed network connection.
ErrUdpaddrCast
Addr is not a net.UDPAddr.
ErrDoubleLock
Try-lock is already locked.
ErrTransactionClosed
Transaction closed.
ErrWaitForResultOnNonResultTransaction
Wait_for_result called on non-result transaction.
ErrFailedToBuildRefreshRequest
Failed to build refresh request.
ErrFailedToRefreshAllocation
Failed to refresh allocation.
ErrFailedToGetLifetime
Failed to get lifetime from refresh response.
ErrShortBuffer
Too short buffer.
ErrUnexpectedResponse
Unexpected response type.
ErrAllocatePacketConnMustBeSet
AllocatePacketConn must be set.
ErrAllocateConnMustBeSet
AllocateConn must be set.
ErrLeveledLoggerMustBeSet
LeveledLogger must be set.
ErrSameChannelDifferentPeer
You cannot use the same channel number with different peer.
ErrNilFiveTuple
Allocations must not be created with nil FivTuple.
ErrNilFiveTupleSrcAddr
Allocations must not be created with nil FiveTuple.src_addr.
ErrNilFiveTupleDstAddr
Allocations must not be created with nil FiveTuple.dst_addr.
ErrNilTurnSocket
Allocations must not be created with nil turnSocket.
ErrLifetimeZero
Allocations must not be created with a lifetime of 0.
ErrDupeFiveTuple
Allocation attempt created with duplicate FiveTuple.
ErrFailedToCastUdpaddr
Failed to cast net.Addr to *net.UDPAddr.
ErrFailedToGenerateNonce
Failed to generate nonce.
ErrFailedToSendError
Failed to send error message.
ErrDuplicatedNonce
Duplicated Nonce generated, discarding request.
ErrNoSuchUser
No such user exists.
ErrUnexpectedClass
Unexpected class.
ErrUnexpectedMethod
Unexpected method.
ErrFailedToHandle
Failed to handle.
ErrUnhandledStunpacket
Unhandled STUN packet.
ErrUnableToHandleChannelData
Unable to handle ChannelData.
ErrFailedToCreateStunpacket
Failed to create STUN message from packet.
ErrFailedToCreateChannelData
Failed to create channel data from packet.
ErrRelayAlreadyAllocatedForFiveTuple
Relay already allocated for 5-TUPLE.
ErrRequestedTransportMustBeUdp
RequestedTransport must be UDP.
ErrNoDontFragmentSupport
No support for DONT-FRAGMENT.
ErrRequestWithReservationTokenAndEvenPort
Request must not contain RESERVATION-TOKEN and EVEN-PORT.
ErrNoAllocationFound
No allocation found.
ErrNoPermission
Unable to handle send-indication, no permission added.
ErrShortWrite
Packet write smaller than packet.
ErrNoSuchChannelBind
No such channel bind.
ErrFailedWriteSocket
Failed writing to socket.
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
Failed to send packet.
ErrAttributeTooShortIceCandidate
Attribute not long enough to be ICE candidate.
ErrParseComponent
Could not parse component.
ErrParsePriority
Could not parse priority.
ErrParsePort
Could not parse port.
ErrParseRelatedAddr
Could not parse related addresses.
ErrParseType
Could not parse type.
ErrUnknownCandidateType
Unknown candidate type.
ErrGetXorMappedAddrResponse
Failed to get XOR-MAPPED-ADDRESS response.
ErrConnectionAddrAlreadyExist
Connection with same remote address already exists.
ErrReadingStreamingPacket
Error reading streaming packet.
ErrWriting
Error writing to.
ErrClosingConnection
Error closing connection.
ErrDetermineNetworkType
Unable to determine networkType.
ErrMissingProtocolScheme
Missing protocol scheme.
ErrTooManyColonsAddr
Too many colons in address.
ErrRead
Unexpected error trying to read.
ErrUnknownRole
Unknown role.
ErrMismatchUsername
Username mismatch.
ErrIceWriteStunMessage
The ICE conn can’t write STUN messages.
ErrUrlParse
URL parse: relative URL without a base.
ErrCandidateIpNotFound
Candidate IP could not be found.
ErrConnClosed
Conn is closed.
ErrDeadlineExceeded
Read/write timeout.
ErrContextUnsupported
Context is not supported for export_keying_material.
ErrDtlspacketInvalidLength
Packet is too short.
ErrHandshakeInProgress
Handshake is in progress.
ErrInvalidContentType
Invalid content type.
ErrInvalidMac
Invalid mac.
ErrInvalidPacketLength
Packet length and declared length do not match.
ErrReservedExportKeyingMaterial
Export_keying_material can not be used with a reserved label.
ErrCertificateVerifyNoCertificate
Client sent certificate verify but we have no certificate to verify.
ErrCipherSuiteNoIntersection
Client+server do not support any shared cipher suites.
ErrCipherSuiteUnset
Server hello can not be created without a cipher suite.
ErrClientCertificateNotVerified
Client sent certificate but did not verify it.
ErrClientCertificateRequired
Server required client verification, but got none.
ErrClientNoMatchingSrtpProfile
Server responded with SRTP Profile we do not support.
ErrClientRequiredButNoServerEms
Client required Extended Master Secret extension, but server does not support it.
ErrCompressionMethodUnset
Server hello can not be created without a compression method.
ErrCookieMismatch
Client+server cookie does not match.
ErrCookieTooLong
Cookie must not be longer then 255 bytes.
ErrIdentityNoPsk
PSK Identity Hint provided but PSK is nil.
ErrInvalidCertificate
No certificate provided.
ErrInvalidCipherSpec
Cipher spec invalid.
ErrInvalidCipherSuite
Invalid or unknown cipher suite.
ErrInvalidClientKeyExchange
Unable to determine if ClientKeyExchange is a public key or PSK Identity.
ErrInvalidCompressionMethod
Invalid or unknown compression method.
ErrInvalidEcdsasignature
ECDSA signature contained zero or negative values.
ErrInvalidEllipticCurveType
Invalid or unknown elliptic curve type.
ErrInvalidExtensionType
Invalid extension type.
ErrInvalidHashAlgorithm
Invalid hash algorithm.
ErrInvalidNamedCurve
Invalid named curve.
ErrInvalidPrivateKey
Invalid private key type.
ErrNamedCurveAndPrivateKeyMismatch
Named curve and private key type does not match.
ErrInvalidSniFormat
Invalid server name format.
ErrInvalidSignatureAlgorithm
Invalid signature algorithm.
ErrKeySignatureMismatch
Expected and actual key signature do not match.
ErrNilNextConn
Conn can not be created with a nil nextConn.
ErrNoAvailableCipherSuites
Connection can not be created, no CipherSuites satisfy this Config.
ErrNoAvailableSignatureSchemes
Connection can not be created, no SignatureScheme satisfy this Config.
ErrNoCertificates
No certificates configured.
ErrNoConfigProvided
No config provided.
ErrNoSupportedEllipticCurves
Client requested zero or more elliptic curves that are not supported by the server.
ErrUnsupportedProtocolVersion
Unsupported protocol version.
ErrPskAndCertificate
Certificate and PSK provided.
ErrPskAndIdentityMustBeSetForClient
PSK and PSK Identity Hint must both be set for client.
ErrRequestedButNoSrtpExtension
SRTP support was requested but server did not respond with use_SRTP extension.
ErrServerMustHaveCertificate
Certificate is mandatory for server.
ErrServerNoMatchingSrtpProfile
Client requested SRTP but we have no matching profiles.
ErrServerRequiredButNoClientEms
Server requires the Extended Master Secret extension, but the client does not support it.
ErrVerifyDataMismatch
Expected and actual verify data does not match.
ErrHandshakeMessageUnset
Handshake message unset, unable to marshal.
ErrInvalidFlight
Invalid flight number.
ErrKeySignatureGenerateUnimplemented
Unable to generate key signature, unimplemented.
ErrKeySignatureVerifyUnimplemented
Unable to verify key signature, unimplemented.
ErrLengthMismatch
Data length and declared length do not match.
ErrNotEnoughRoomForNonce
Buffer not long enough to contain nonce.
ErrNotImplemented
Feature has not been implemented yet.
ErrSequenceNumberOverflow
Sequence number overflow.
ErrUnableToMarshalFragmented
Unable to marshal fragmented handshakes.
ErrInvalidFsmTransition
Invalid state machine transition.
ErrApplicationDataEpochZero
ApplicationData with epoch of 0.
ErrUnhandledContextType
Unhandled contentType.
ErrContextCanceled
Context canceled.
ErrEmptyFragment
Empty fragment.
ErrAlertFatalOrClose
Alert is Fatal or Close Notify.
ErrFragmentBufferOverflow
Fragment buffer overflow. New size is greater than specified max.
Fields
ErrClientTransportNotSet
Client transport is not set yet.
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
Raw is too small for a SCTP chunk.
ErrChunkHeaderNotEnoughSpace
Not enough data left in SCTP packet to satisfy requested length.
ErrChunkHeaderPaddingNonZero
Chunk PADDING is non-zero at offset.
ErrChunkHeaderInvalidLength
Chunk has invalid length.
ErrChunkTypeNotAbort
ChunkType is not of type ABORT.
ErrBuildAbortChunkFailed
Failed build Abort Chunk.
ErrChunkTypeNotCookieAck
ChunkType is not of type COOKIEACK.
ErrChunkTypeNotCookieEcho
ChunkType is not of type COOKIEECHO.
ErrChunkTypeNotCt
ChunkType is not of type ctError.
ErrBuildErrorChunkFailed
Failed build Error Chunk.
ErrMarshalStreamFailed
Failed to marshal stream.
ErrChunkTooShort
Chunk too short.
ErrChunkTypeNotForwardTsn
ChunkType is not of type ForwardTsn.
ErrChunkTypeNotHeartbeat
ChunkType is not of type HEARTBEAT.
ErrChunkTypeNotHeartbeatAck
ChunkType is not of type HEARTBEATACK.
ErrHeartbeatNotLongEnoughInfo
Heartbeat is not long enough to contain Heartbeat Info.
ErrParseParamTypeFailed
Failed to parse param type.
ErrHeartbeatParam
Heartbeat should only have HEARTBEAT param.
ErrHeartbeatChunkUnmarshal
Failed unmarshalling param in Heartbeat Chunk.
ErrUnimplemented
Unimplemented.
ErrHeartbeatAckParams
Heartbeat Ack must have one param.
ErrHeartbeatAckNotHeartbeatInfo
Heartbeat Ack must have one param, and it should be a HeartbeatInfo.
ErrHeartbeatAckMarshalParam
Unable to marshal parameter for Heartbeat Ack.
ErrErrorCauseTooSmall
Raw is too small for error cause.
ErrParamTypeUnhandled
Unhandled ParamType.
ErrParamTypeUnexpected
Unexpected ParamType.
ErrParamHeaderTooShort
Param header too short.
ErrParamHeaderSelfReportedLengthShorter
Param self reported length is shorter than header length.
ErrParamHeaderSelfReportedLengthLonger
Param self reported length is longer than header length.
ErrParamHeaderParseFailed
Failed to parse param type.
ErrParamPacketTooShort
Packet to short.
ErrSsnResetRequestParamTooShort
Outgoing SSN reset request parameter too short.
ErrUnmarshalSsnResetRequestParam
Failed unmarshalling SSN reset request parameter in RE-CONFIG chunk.
ErrReconfigRespParamTooShort
Reconfig response parameter too short.
ErrUnmarshalReconfigRespParam
Failed unmarshalling re-configuration response parameter in RE-CONFIG chunk.
ErrInvalidAlgorithmType
Invalid algorithm type.
ErrInitChunkParseParamTypeFailed
Failed to parse param type.
ErrInitChunkUnmarshalParam
Failed unmarshalling param in Init Chunk.
ErrInitAckMarshalParam
Unable to marshal parameter for INIT/INITACK.
ErrChunkTypeNotTypeInit
ChunkType is not of type INIT.
ErrChunkValueNotLongEnough
Chunk Value isn’t long enough for mandatory parameters exp.
ErrChunkTypeInitFlagZero
ChunkType of type INIT flags must be all 0.
ErrChunkTypeInitUnmarshalFailed
Failed to unmarshal INIT body.
ErrChunkTypeInitMarshalFailed
Failed marshaling INIT common data.
ErrChunkTypeInitInitiateTagZero
ChunkType of type INIT ACK InitiateTag must not be 0.
ErrInitInboundStreamRequestZero
INIT ACK inbound stream request must be > 0.
ErrInitOutboundStreamRequestZero
INIT ACK outbound stream request must be > 0.
ErrInitAdvertisedReceiver1500
INIT ACK Advertised Receiver Window Credit (a_rwnd) must be >= 1500.
ErrChunkPayloadSmall
Packet is smaller than the header size.
ErrChunkTypeNotPayloadData
ChunkType is not of type PayloadData.
ErrChunkUnmarshalPayloadData
Failed unmarshalling payload data chunk.
ErrChunkTypeNotReconfig
ChunkType is not of type Reconfig.
ErrChunkReconfigInvalidParamA
ChunkReconfig has invalid ParamA.
ErrChunkParseParamTypeFailed
Failed to parse param type.
ErrChunkMarshalParamAReconfigFailed
Unable to marshal parameter A for reconfig.
ErrChunkMarshalParamBReconfigFailed
Unable to marshal parameter B for reconfig.
ErrChunkTypeNotSack
ChunkType is not of type SACK.
ErrSackSizeNotLargeEnoughInfo
SACK Chunk size is not large enough to contain header.
ErrChunkUnmarshalSack
Failed unmarshalling SACK chunk.
ErrInvalidChunkSize
Invalid chunk size.
ErrChunkTypeNotShutdown
ChunkType is not of type SHUTDOWN.
ErrChunkUnmarshalShutdown
Failed unmarshalling shutdown chunk.
ErrChunkTypeNotShutdownAck
ChunkType is not of type SHUTDOWN-ACK.
ErrChunkTypeNotShutdownComplete
ChunkType is not of type SHUTDOWN-COMPLETE.
ErrPacketRawTooSmall
Raw is smaller than the minimum length for a SCTP packet.
ErrParseSctpChunkNotEnoughData
Unable to parse SCTP chunk, not enough data for complete header.
ErrUnmarshalUnknownChunkType
Failed to unmarshal, contains unknown chunk type.
ErrChecksumMismatch
Checksum mismatch theirs.
ErrUnexpectedChuckPoppedUnordered
Unexpected chunk popped (unordered).
ErrUnexpectedChuckPoppedOrdered
Unexpected chunk popped (ordered).
ErrUnexpectedQState
Unexpected q state (should’ve been selected).
ErrTryAgain
Try again.
ErrAbortChunk(String)
Abort chunk, with following errors.
ErrShutdownNonEstablished
Shutdown called in non-Established state.
ErrAssociationClosedBeforeConn
Association closed before connecting.
ErrAssociationInitFailed
Association init failed.
ErrAssociationHandshakeClosed
Association handshake closed.
ErrSilentlyDiscard
Silently discard.
ErrInitNotStoredToSend
The init not stored to send.
ErrCookieEchoNotStoredToSend
CookieEcho not stored to send.
ErrSctpPacketSourcePortZero
SCTP packet must not have a source port of 0.
ErrSctpPacketDestinationPortZero
SCTP packet must not have a destination port of 0.
ErrInitChunkBundled
Init chunk must not be bundled with any other chunk.
ErrInitChunkVerifyTagNotZero
Init chunk expects a verification tag of 0 on the packet when out-of-the-blue.
ErrHandleInitState
Todo: handle Init when in state.
ErrInitAckNoCookie
No cookie in InitAck.
ErrStreamAlreadyExist
There already exists a stream with identifier.
ErrStreamCreateFailed
Failed to create a stream with identifier.
ErrInflightQueueTsnPop
Unable to be popped from inflight queue TSN.
ErrTsnRequestNotExist
Requested non-existent TSN.
ErrResetPacketInStateNotExist
Sending reset packet in non-Established state.
ErrParameterType
Unexpected parameter type.
ErrPayloadDataStateNotExist
Sending payload data in non-Established state.
ErrChunkTypeUnhandled
Unhandled chunk type.
ErrHandshakeInitAck
Handshake failed (INIT ACK).
ErrHandshakeCookieEcho
Handshake failed (COOKIE ECHO).
ErrOutboundPacketTooLarge
Outbound packet larger than maximum message size.
ErrStreamClosed
Stream closed.
ErrStreamNotExisted
Stream not existed.
ErrAssociationNotExisted
Association not existed.
ErrTransportNoExisted
Transport not existed.
ErrEof
Io EOF.
ErrInvalidSystemTime
Invalid SystemTime.
ErrNetConnRead
Net Conn read error.
ErrMaxDataChannelID
Max Data Channel ID.
UnexpectedEndOfBuffer
DataChannel message is not long enough to determine type: (expected: , actual: ).
Fields
InvalidMessageType(u8)
Unknown MessageType.
InvalidChannelType(u8)
Unknown ChannelType.
InvalidPayloadProtocolIdentifier(u8)
Unknown PayloadProtocolIdentifier.
UnknownProtocol
Unknow Protocol.
ErrNilStream
Stream is nil.
ErrIncompleteFrameHeader
Incomplete frame header.
ErrIncompleteFrameData
Incomplete frame data.
ErrIncompleteFileHeader
Incomplete file header.
ErrSignatureMismatch
IVF signature mismatch.
ErrUnknownIVFVersion
IVF version unknown, parser may not parse correctly.
ErrFileNotOpened
File not opened.
ErrInvalidNilPacket
Invalid nil packet.
ErrBadIDPageSignature
Bad header signature.
ErrBadIDPageType
Wrong header, expected beginning of stream.
ErrBadIDPageLength
Payload for id page must be 19 bytes.
ErrBadIDPagePayloadSignature
Bad payload signature.
ErrShortPageHeader
Not enough data for payload header.
ErrBadOpusTagsSignature
Bad OpusTags signature.
ErrUnsupportedChannelMappingFamily
Unsupported channel mapping family.
ErrDataIsNotH264Stream
Data is not a H264 bitstream.
ErrDataIsNotH265Stream
Data is not a H265 bitstream.
ErrIoEOF
Io EOF.
ErrMDNSPortNotSupported
MDNS: port not support, only 5353 is supported.
ErrMDNSConnectionClosed
MDNS: connection is closed.
ErrMDNSQueryNotFound
MDNS: query not found.
ErrNotStarted
MDNS: parsing/packing of this type isn’t available yet.
ErrSectionDone
MDNS: parsing/packing of this section has completed.
ErrSectionHeader
MDNS: parsing/packing of this section is header.
ErrBaseLen
MDNS: insufficient data for base length type.
ErrCalcLen
MDNS: insufficient data for calculated length type.
ErrReserved
MDNS: segment prefix is reserved.
ErrTooManyPtr
MDNS: too many pointers (>10).
ErrInvalidPtr
MDNS: invalid pointer.
ErrNilResourceBody
MDNS: nil resource body.
ErrResourceLen
MDNS: insufficient data for resource body length.
ErrSegTooLong
MDNS: segment length too long.
ErrZeroSegLen
MDNS: zero length segment.
ErrResTooLong
MDNS: resource length too long.
ErrTooManyQuestions
MDNS: too many Questions to pack (>65535).
ErrTooManyAnswers
MDNS: too many Answers to pack (>65535).
ErrTooManyAuthorities
MDNS: too many Authorities to pack (>65535).
ErrTooManyAdditionals
MDNS: too many Additionals to pack (>65535).
ErrNonCanonicalName
MDNS: name is not in canonical format (it must end with a .).
ErrStringTooLong
MDNS: character string exceeds maximum length (255).
ErrCompressedSrv
MDNS: compressed name in SRV resource data.
ErrEmptyBuilderMsg
MDNS: empty builder msg.
ErrConnectionClosed
ErrConnectionClosed indicates an operation executed after connection has already been closed.
ErrDataChannelClosed
ErrDataChannelClosed indicates an operation executed when the data channel is not (yet) open or closed.
ErrDataChannelNotOpen
ErrDataChannelNotOpen indicates a send was attempted on a data channel
whose underlying SCTP stream has not been established yet — its
ready_state is still connecting. Wait for the channel to open.
ErrDataChannelNotExisted
ErrDataChannelNonExist indicates an operation executed when the data channel not existed.
ErrSendBufferFull
ErrSendBufferFull indicates that a data-channel send was rejected because the channel’s outstanding send buffer exceeded the configured hard ceiling (back-pressure). Retry after the buffer drains (e.g. on OnBufferedAmountLow).
ErrCertificateExpired
ErrCertificateExpired indicates that an x509 certificate has expired.
ErrNoTurnCredentials
ErrNoTurnCredentials indicates that a TURN server URL was provided without required credentials.
ErrTurnCredentials
ErrTurnCredentials indicates that provided TURN credentials are partial or malformed.
ErrExistingTrack
ErrExistingTrack indicates that a track already exists.
ErrTrackNotExisted
ErrExistingTrack indicates that a track already exists.
ErrPrivateKeyType
ErrPrivateKeyType indicates that a particular private key encryption chosen to generate a certificate is not supported.
ErrModifyingPeerIdentity
ErrModifyingPeerIdentity indicates that an attempt to modify PeerIdentity was made after PeerConnection has been initialized.
ErrModifyingCertificates
ErrModifyingCertificates indicates that an attempt to modify Certificates was made after PeerConnection has been initialized.
ErrNonCertificate
ErrNonCertificate indicates that there is no certificate
ErrModifyingBundlePolicy
ErrModifyingBundlePolicy indicates that an attempt to modify BundlePolicy was made after PeerConnection has been initialized.
ErrModifyingRTCPMuxPolicy
ErrModifyingRTCPMuxPolicy indicates that an attempt to modify RTCPMuxPolicy was made after PeerConnection has been initialized.
ErrModifyingICECandidatePoolSize
ErrModifyingICECandidatePoolSize indicates that an attempt to modify ICECandidatePoolSize was made after PeerConnection has been initialized.
ErrStringSizeLimit
ErrStringSizeLimit indicates that the character size limit of string is exceeded. The limit is hardcoded to 65535 according to specifications.
ErrNegotiatedWithoutID
ErrNegotiatedWithoutID indicates that an attempt to create a data channel was made while setting the negotiated option to true without providing the negotiated channel ID.
ErrRetransmitsOrPacketLifeTime
ErrRetransmitsOrPacketLifeTime indicates that an attempt to create a data channel was made with both options max_packet_life_time and max_retransmits set together. Such configuration is not supported by the specification and is mutually exclusive.
ErrCodecNotFound
ErrCodecNotFound is returned when a codec search to the Media Engine fails
ErrNoRemoteDescription
ErrNoRemoteDescription indicates that an operation was rejected because the remote description is not set
ErrIncorrectSDPSemantics
ErrIncorrectSDPSemantics indicates that the PeerConnection was configured to generate SDP Answers with different SDP Semantics than the received Offer
ErrIncorrectSignalingState
ErrIncorrectSignalingState indicates that the signaling state of PeerConnection is not correct
ErrProtocolTooLarge
ErrProtocolTooLarge indicates that value given for a DataChannelInit protocol is longer then 65535 bytes
ErrSenderNotCreatedByConnection
ErrSenderNotCreatedByConnection indicates remove_track was called with a RtpSender not created by this PeerConnection
ErrSenderInitialTrackIdAlreadySet
ErrSenderInitialTrackIdAlreadySet indicates a second call to RtpSender::set_initial_track_id which is not allowed.
ErrSessionDescriptionNoFingerprint
ErrSessionDescriptionNoFingerprint indicates set_remote_description was called with a SessionDescription that has no fingerprint
ErrSessionDescriptionInvalidFingerprint
ErrSessionDescriptionInvalidFingerprint indicates set_remote_description was called with a SessionDescription that has an invalid fingerprint
ErrSessionDescriptionConflictingFingerprints
ErrSessionDescriptionConflictingFingerprints indicates set_remote_description was called with a SessionDescription that has an conflicting fingerprints
ErrSessionDescriptionMissingIceUfrag
ErrSessionDescriptionMissingIceUfrag indicates set_remote_description was called with a SessionDescription that is missing an ice-ufrag value
ErrSessionDescriptionMissingIcePwd
ErrSessionDescriptionMissingIcePwd indicates set_remote_description was called with a SessionDescription that is missing an ice-pwd value
ErrSessionDescriptionConflictingIceUfrag
ErrSessionDescriptionConflictingIceUfrag indicates set_remote_description was called with a SessionDescription that contains multiple conflicting ice-ufrag values
ErrSessionDescriptionConflictingIcePwd
ErrSessionDescriptionConflictingIcePwd indicates set_remote_description was called with a SessionDescription that contains multiple conflicting ice-pwd values
ErrNoSRTPProtectionProfile
ErrNoSRTPProtectionProfile indicates that the DTLS handshake completed and no SRTP Protection Profile was chosen
ErrFailedToGenerateCertificateFingerprint
ErrFailedToGenerateCertificateFingerprint indicates that we failed to generate the fingerprint used for comparing certificates
ErrNoCodecsAvailable
ErrNoCodecsAvailable indicates that operation isn’t possible because the MediaEngine has no codecs available
ErrUnsupportedCodec
ErrUnsupportedCodec indicates the remote peer doesn’t support the requested codec
InvalidStateError
Invalid state error.
InvalidModificationError
Invalid modification error.
RangeError(String)
Range error.
ErrSenderWithNoCodecs
ErrSenderWithNoCodecs indicates that a RTPSender was created without any codecs. To send media the MediaEngine needs at least one configured codec.
ErrSenderWithNoSSRCs
ErrSenderWithNoSSRCs indicates that a RTPSender was created without any SSRRs. To send media the Sender needs at least one configured ssrc.
ErrRTPSenderNewTrackHasIncorrectKind
ErrRTPSenderNewTrackHasIncorrectKind indicates that the new track is of a different kind than the previous/original
ErrRTPSenderNewTrackHasIncorrectEnvelope
New track has incorrect envelope.
ErrRTPSenderDataSent
ErrRTPSenderDataSent indicates that the sequence number transformer tries to be enabled after the data sending began
ErrRTPSenderSeqTransEnabled
ErrRTPSenderSeqTransEnabled indicates that the sequence number transformer has been already enabled
ErrUnbindFailed
ErrUnbindFailed indicates that a TrackLocal was not able to be unbind
ErrNoPayloaderForCodec
ErrNoPayloaderForCodec indicates that the requested codec does not have a payloader
ErrRegisterHeaderExtensionInvalidDirection
ErrRegisterHeaderExtensionInvalidDirection indicates that a extension was registered with different directions for two different calls.
ErrInvalidDirection
Invalid direction.
ErrRegisterHeaderExtensionNoFreeID
ErrRegisterHeaderExtensionNoFreeID indicates that there was no extension ID available which in turn means that all 15 available id(1 through 14) have been used.
ErrSimulcastProbeOverflow
ErrSimulcastProbeOverflow indicates that too many Simulcast probe streams are in flight and the requested SSRC was ignored
ErrDetachNotEnabled
Enable detaching by calling webrtc.DetachDataChannels.
ErrDetachBeforeOpened
Datachannel not opened yet, try calling Detach from OnOpen.
ErrDtlsTransportNotStarted
The DTLS transport has not started yet.
ErrDtlsKeyExtractionFailed
Failed extracting keys from DTLS for SRTP.
ErrFailedToStartSRTP
Failed to start SRTP.
ErrFailedToStartSRTCP
Failed to start SRTCP.
ErrInvalidDTLSStart
Attempted to start DTLSTransport that is not in new state.
ErrNoRemoteCertificate
Peer didn’t provide certificate via DTLS.
ErrIdentityProviderNotImplemented
Identity provider is not implemented.
ErrNoMatchingCertificateFingerprint
Remote certificate does not match any fingerprint.
ErrUnsupportedFingerprintAlgorithm
Unsupported fingerprint algorithm.
ErrICEConnectionNotStarted
ICE connection not started.
ErrICECandidateTypeUnknown
Unknown candidate type.
ErrICEInvalidConvertCandidateType
Cannot convert ICE.CandidateType into webrtc.ICECandidateType, invalid type.
ErrICEAgentNotExist
ICEAgent does not exist.
ErrICECandidatesConversionFailed
Unable to convert ICE candidates to ICECandidates.
ErrICERoleUnknown
Unknown ICE Role.
ErrICEProtocolUnknown
Unknown protocol.
ErrICEGathererNotStarted
Gatherer not started.
ErrNetworkTypeUnknown
Unknown network type.
ErrSDPDoesNotMatchOffer
New SDP does not match previous offer.
ErrSDPDoesNotMatchAnswer
New SDP does not match previous answer.
ErrPeerConnSDPTypeInvalidValue
Provided value is not a valid enum value of type SDPType.
ErrPeerConnStateChangeInvalid
Invalid state change op.
ErrPeerConnStateChangeUnhandled
Unhandled state change op.
ErrPeerConnSDPTypeInvalidValueSetLocalDescription
Invalid SDP type supplied to SetLocalDescription.
ErrPeerConnRemoteDescriptionWithoutMidValue
RemoteDescription contained media section without mid value.
ErrPeerConnLocalDescriptionWithoutMidValue
LocalDescription contained media section without mid value.
ErrPeerConnRemoteDescriptionNil
RemoteDescription has not been set yet.
ErrPeerConnLocalDescriptionNil
LocalDescription has not been set yet.
ErrPeerConnSingleMediaSectionHasExplicitSSRC
Single media section has an explicit SSRC.
ErrPeerConnRemoteSSRCAddTransceiver
Could not add transceiver for remote SSRC.
ErrPeerConnSimulcastMidRTPExtensionRequired
Mid RTP Extensions required for Simulcast.
ErrPeerConnSimulcastStreamIDRTPExtensionRequired
Stream id RTP Extensions required for Simulcast.
ErrPeerConnSimulcastIncomingSSRCFailed
Incoming SSRC failed Simulcast probing.
ErrPeerConnStatsCollectionFailed
Failed collecting stats.
ErrPeerConnAddTransceiverFromKindOnlyAcceptsOne
Add_transceiver_from_kind only accepts one RTPTransceiverInit.
ErrPeerConnAddTransceiverFromTrackOnlyAcceptsOne
Add_transceiver_from_track only accepts one RTPTransceiverInit.
ErrPeerConnAddTransceiverFromKindSupport
Add_transceiver_from_kind currently only supports recvonly.
ErrPeerConnAddTransceiverFromTrackSupport
Add_transceiver_from_track currently only supports sendonly and sendrecv.
ErrPeerConnSetIdentityProviderNotImplemented
TODO set_identity_provider.
ErrPeerConnWriteRTCPOpenWriteStream
Write_RTCP failed to open write_stream.
ErrPeerConnTransceiverMidNil
Cannot find transceiver with mid.
ErrRTPReceiverDTLSTransportNil
DTLSTransport must not be nil.
ErrRTPReceiverReceiveAlreadyCalled
Receive has already been called.
ErrRTPReceiverWithSSRCTrackStreamNotFound
Unable to find stream for Track with SSRC.
ErrRTPReceiverForSSRCTrackStreamNotFound
No trackStreams found for SSRC.
ErrRTPReceiverForRIDTrackStreamNotFound
No trackStreams found for RID.
ErrRTPReceiverStateChangeInvalid
Invalid RTP Receiver transition.
ErrRTPSenderTrackNil
Track must not be nil.
ErrRTPSenderNotExisted
RTPSender not existed.
ErrRTPSenderTrackRemoved
Sender Track has been removed or replaced to nil.
ErrRTPSenderRidNil
Sender cannot add encoding as rid is empty.
ErrRTPSenderNoBaseEncoding
Sender cannot add encoding as there is no base track.
ErrRTPSenderBaseEncodingMismatch
Sender cannot add encoding as provided track does not match base track.
ErrRTPSenderRIDCollision
Sender cannot encoding due to RID collision.
ErrRTPSenderNoTrackForRID
Sender does not have track for RID.
ErrRTPReceiverNotExisted
RTPReceiver not existed.
ErrRTPSenderDTLSTransportNil
DTLSTransport must not be nil.
ErrRTPSenderSendAlreadyCalled
Send has already been called.
ErrRTPTransceiverNotExisted
RTPTransceiver not existed.
ErrRTPTransceiverCannotChangeMid
ErrRTPSenderTrackNil.
ErrRTPTransceiverSetSendingInvalidState
Invalid state change in RTPTransceiver.setSending.
ErrRTPTransceiverCodecUnsupported
Unsupported codec type by this transceiver.
ErrSCTPTransportDTLS
DTLS not established.
ErrSDPZeroTransceivers
Add_transceiver_SDP called with 0 transceivers.
ErrSDPMediaSectionMediaDataChanInvalid
Invalid Media Section. Media + DataChannel both enabled.
ErrSDPMediaSectionTrackInvalid
Invalid Media Section Track Index.
ErrSettingEngineSetAnsweringDTLSRole
Set_answering_dtlsrole must DTLSRoleClient or DTLSRoleServer.
ErrSignalingStateCannotRollback
Can’t rollback from stable state.
ErrSignalingStateProposedTransitionInvalid(String)
Invalid proposed signaling state transition.
ErrStatsICECandidateStateInvalid
Cannot convert to StatsICECandidatePairStateSucceeded invalid ICE candidate state.
ErrICETransportNotInNew
ICETransport can only be called in ICETransportStateNew.
ErrCertificatePEMFormatError
Bad Certificate PEM format.
ErrSCTPNotEstablished
SCTP is not established.
ErrClosedPipe
DataChannel is not opened.
ErrInterceptorNotBind
Interceptor is not bind.
ErrExcessiveRetries
Excessive retries in CreateOffer.
ErrRTPTooShort
Not long enough to be a RTP Packet.
SimulcastRidParseErrorSyntaxIdDirSplit
SyntaxIdDirSplit indicates rid-syntax could not be parsed.
SimulcastRidParseErrorUnknownDirection
UnknownDirection indicates rid-dir was not parsed. Should be “send” or “recv”.
CodecNotFound
Codec not found.
MissingWhitespace
Missing whitespace.
MissingColon
Missing colon.
PayloadTypeNotFound
Payload type not found.
SdpInvalidSyntax(String)
SdpInvalidSyntax.
SdpInvalidValue(String)
SdpInvalidValue.
SdpEmptyTimeDescription
SDP: empty time_descriptions.
ParseExtMap(String)
Parse extmap.
SyntaxError
A syntax error at a known offset in the input, rendered with the offending character marked.
Sec1(Error)
An error from the sec1 crate while handling EC key encodings.
P256(P256Error)
An error from the p256 crate during NIST P-256 elliptic-curve operations.
RcGen(Error)
An error from the rcgen crate while generating a self-signed certificate.
InvalidPEM(String)
Invalid PEM.
AesGcm(Error)
AES GCM.
ParseIp(AddrParseError)
Parse ip.
ParseInt(ParseIntError)
Parse int.
Io(IoError)
An underlying I/O error.
Url(ParseError)
URL parse.
Utf8(FromUtf8Error)
UTF-8.
Std(StdError)
An error from the standard library or another boxed source.
Aes(InvalidLength)
An error from the aes crate during block-cipher setup.
OtherRtcpErr(String)
Other RTCP Err.
OtherRtpErr(String)
Other RTP Err.
OtherSrtpErr(String)
Other SRTP Err.
OtherStunErr(String)
Other STUN Err.
OtherTurnErr(String)
Other TURN Err.
OtherIceErr(String)
Other ICE Err.
OtherDtlsErr(String)
Other DTLS Err.
OtherSctpErr(String)
Other SCTP Err.
OtherDataChannelErr(String)
Other DataChannel Err.
OtherInterceptorErr(String)
Other Interceptor Err.
OtherMediaErr(String)
Other Media Err.
OtherMdnsErr(String)
Other mDNS Err.
OtherSdpErr(String)
Other SDP Err.
OtherPeerConnectionErr(String)
Other PeerConnection Err.
Other(String)
An error that does not fit any other variant, carrying a description.
Implementations§
Source§impl Error
impl Error
Sourcepub fn from_std<T>(error: T) -> Self
pub fn from_std<T>(error: T) -> Self
Wraps any std::error::Error implementation as Error::Std,
preserving the original error and its stack trace.
Sourcepub fn downcast_ref<T: Error + 'static>(&self) -> Option<&T>
pub fn downcast_ref<T: Error + 'static>(&self) -> Option<&T>
Attempts to downcast an Error::Std variant to a concrete error type.
Returns None if this error is not Error::Std or if the inner error
is not of type T.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()