Enum webrtc::error::Error[][src]

pub enum Error {
Show 109 variants ErrUnknownType, ErrConnectionClosed, ErrDataChannelNotOpen, ErrCertificateExpired, ErrNoTurnCredentials, ErrTurnCredentials, ErrExistingTrack, ErrPrivateKeyType, ErrModifyingPeerIdentity, ErrModifyingCertificates, ErrNonCertificate, ErrModifyingBundlePolicy, ErrModifyingRTCPMuxPolicy, ErrModifyingICECandidatePoolSize, ErrStringSizeLimit, ErrMaxDataChannelID, ErrNegotiatedWithoutID, ErrRetransmitsOrPacketLifeTime, ErrCodecNotFound, ErrNoRemoteDescription, ErrIncorrectSDPSemantics, ErrIncorrectSignalingState, ErrProtocolTooLarge, ErrSenderNotCreatedByConnection, ErrSessionDescriptionNoFingerprint, ErrSessionDescriptionInvalidFingerprint, ErrSessionDescriptionConflictingFingerprints, ErrSessionDescriptionMissingIceUfrag, ErrSessionDescriptionMissingIcePwd, ErrSessionDescriptionConflictingIceUfrag, ErrSessionDescriptionConflictingIcePwd, ErrNoSRTPProtectionProfile, ErrFailedToGenerateCertificateFingerprint, ErrNoCodecsAvailable, ErrUnsupportedCodec, ErrRTPSenderNewTrackHasIncorrectKind, ErrUnbindFailed, ErrNoPayloaderForCodec, ErrRegisterHeaderExtensionInvalidDirection, ErrSimulcastProbeOverflow, ErrDetachNotEnabled, ErrDetachBeforeOpened, ErrDtlsTransportNotStarted, ErrDtlsKeyExtractionFailed, ErrFailedToStartSRTP, ErrFailedToStartSRTCP, ErrInvalidDTLSStart, ErrNoRemoteCertificate, ErrIdentityProviderNotImplemented, ErrNoMatchingCertificateFingerprint, ErrUnsupportedFingerprintAlgorithm, ErrICEConnectionNotStarted, ErrICECandidateTypeUnknown, ErrICEInvalidConvertCandidateType, ErrICEAgentNotExist, ErrICECandiatesCoversionFailed, ErrICERoleUnknown, ErrICEProtocolUnknown, ErrICEGathererNotStarted, ErrNetworkTypeUnknown, ErrSDPDoesNotMatchOffer, ErrSDPDoesNotMatchAnswer, ErrPeerConnSDPTypeInvalidValue, ErrPeerConnStateChangeInvalid, ErrPeerConnStateChangeUnhandled, ErrPeerConnSDPTypeInvalidValueSetLocalDescription, ErrPeerConnRemoteDescriptionWithoutMidValue, ErrPeerConnRemoteDescriptionNil, ErrPeerConnSingleMediaSectionHasExplicitSSRC, ErrPeerConnRemoteSSRCAddTransceiver, ErrPeerConnSimulcastMidRTPExtensionRequired, ErrPeerConnSimulcastStreamIDRTPExtensionRequired, ErrPeerConnSimulcastIncomingSSRCFailed, ErrPeerConnAddTransceiverFromKindOnlyAcceptsOne, ErrPeerConnAddTransceiverFromTrackOnlyAcceptsOne, ErrPeerConnAddTransceiverFromKindSupport, ErrPeerConnAddTransceiverFromTrackSupport, ErrPeerConnSetIdentityProviderNotImplemented, ErrPeerConnWriteRTCPOpenWriteStream, ErrPeerConnTranscieverMidNil, ErrRTPReceiverDTLSTransportNil, ErrRTPReceiverReceiveAlreadyCalled, ErrRTPReceiverWithSSRCTrackStreamNotFound, ErrRTPReceiverForSSRCTrackStreamNotFound, ErrRTPReceiverForRIDTrackStreamNotFound, ErrRTPSenderTrackNil, ErrRTPSenderNil, ErrRTPReceiverNil, ErrRTPSenderDTLSTransportNil, ErrRTPSenderSendAlreadyCalled, ErrRTPTransceiverCannotChangeMid, ErrRTPTransceiverSetSendingInvalidState, ErrRTPTransceiverCodecUnsupported, ErrSCTPTransportDTLS, ErrSDPZeroTransceivers, ErrSDPMediaSectionMediaDataChanInvalid, ErrSDPMediaSectionMultipleTrackInvalid, ErrSettingEngineSetAnsweringDTLSRole, ErrSignalingStateCannotRollback, ErrSignalingStateProposedTransitionInvalid, ErrStatsICECandidateStateInvalid, ErrICETransportNotInNew, ErrCertificatePEMFormatError, ErrSCTPNotEstablished, ErrClosedPipe, ErrInterceptorNotBind, ErrExcessiveRetries, ErrRTPTooShort, new(String),
}

Variants

ErrUnknownType

ErrUnknownType indicates an error with Unknown info.

ErrConnectionClosed

ErrConnectionClosed indicates an operation executed after connection has already been closed.

ErrDataChannelNotOpen

ErrDataChannelNotOpen indicates an operation executed when the data channel is not (yet) open.

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.

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.

ErrMaxDataChannelID

ErrMaxDataChannelID indicates that the maximum number ID that could be specified for a data channel has been exceeded.

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

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

ErrRTPSenderNewTrackHasIncorrectKind

ErrRTPSenderNewTrackHasIncorrectKind indicates that the new track is of a different kind than the previous/original

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 a direction besides sendonly or recvonly

ErrSimulcastProbeOverflow

ErrSimulcastProbeOverflow indicates that too many Simulcast probe streams are in flight and the requested SSRC was ignored

ErrDetachNotEnabled
ErrDetachBeforeOpened
ErrDtlsTransportNotStarted
ErrDtlsKeyExtractionFailed
ErrFailedToStartSRTP
ErrFailedToStartSRTCP
ErrInvalidDTLSStart
ErrNoRemoteCertificate
ErrIdentityProviderNotImplemented
ErrNoMatchingCertificateFingerprint
ErrUnsupportedFingerprintAlgorithm
ErrICEConnectionNotStarted
ErrICECandidateTypeUnknown
ErrICEInvalidConvertCandidateType
ErrICEAgentNotExist
ErrICECandiatesCoversionFailed
ErrICERoleUnknown
ErrICEProtocolUnknown
ErrICEGathererNotStarted
ErrNetworkTypeUnknown
ErrSDPDoesNotMatchOffer
ErrSDPDoesNotMatchAnswer
ErrPeerConnSDPTypeInvalidValue
ErrPeerConnStateChangeInvalid
ErrPeerConnStateChangeUnhandled
ErrPeerConnSDPTypeInvalidValueSetLocalDescription
ErrPeerConnRemoteDescriptionWithoutMidValue
ErrPeerConnRemoteDescriptionNil
ErrPeerConnSingleMediaSectionHasExplicitSSRC
ErrPeerConnRemoteSSRCAddTransceiver
ErrPeerConnSimulcastMidRTPExtensionRequired
ErrPeerConnSimulcastStreamIDRTPExtensionRequired
ErrPeerConnSimulcastIncomingSSRCFailed
ErrPeerConnAddTransceiverFromKindOnlyAcceptsOne
ErrPeerConnAddTransceiverFromTrackOnlyAcceptsOne
ErrPeerConnAddTransceiverFromKindSupport
ErrPeerConnAddTransceiverFromTrackSupport
ErrPeerConnSetIdentityProviderNotImplemented
ErrPeerConnWriteRTCPOpenWriteStream
ErrPeerConnTranscieverMidNil
ErrRTPReceiverDTLSTransportNil
ErrRTPReceiverReceiveAlreadyCalled
ErrRTPReceiverWithSSRCTrackStreamNotFound
ErrRTPReceiverForSSRCTrackStreamNotFound
ErrRTPReceiverForRIDTrackStreamNotFound
ErrRTPSenderTrackNil
ErrRTPSenderNil
ErrRTPReceiverNil
ErrRTPSenderDTLSTransportNil
ErrRTPSenderSendAlreadyCalled
ErrRTPTransceiverCannotChangeMid
ErrRTPTransceiverSetSendingInvalidState
ErrRTPTransceiverCodecUnsupported
ErrSCTPTransportDTLS
ErrSDPZeroTransceivers
ErrSDPMediaSectionMediaDataChanInvalid
ErrSDPMediaSectionMultipleTrackInvalid
ErrSettingEngineSetAnsweringDTLSRole
ErrSignalingStateCannotRollback
ErrSignalingStateProposedTransitionInvalid
ErrStatsICECandidateStateInvalid
ErrICETransportNotInNew
ErrCertificatePEMFormatError
ErrSCTPNotEstablished
ErrClosedPipe
ErrInterceptorNotBind
ErrExcessiveRetries
ErrRTPTooShort
new(String)

Tuple Fields of new

0: String

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

Converts the given value to a String. Read more

Attempts to convert self into T using TryInto<T>. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.