pub enum DrmError {
Network(NetworkError),
Exchange(ExchangeError),
WebSocket(WebSocketError),
Signing(SigningError),
RateLimitExceeded,
Serialization(Error),
Config(String),
InvalidInput(String),
Other(String),
}Variants§
Network(NetworkError)
Exchange(ExchangeError)
WebSocket(WebSocketError)
Signing(SigningError)
RateLimitExceeded
Serialization(Error)
Config(String)
InvalidInput(String)
Other(String)
Trait Implementations§
Source§impl Error for DrmError
impl Error for DrmError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ExchangeError> for DrmError
impl From<ExchangeError> for DrmError
Source§fn from(source: ExchangeError) -> Self
fn from(source: ExchangeError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkError> for DrmError
impl From<NetworkError> for DrmError
Source§fn from(source: NetworkError) -> Self
fn from(source: NetworkError) -> Self
Converts to this type from the input type.
Source§impl From<SigningError> for DrmError
impl From<SigningError> for DrmError
Source§fn from(source: SigningError) -> Self
fn from(source: SigningError) -> Self
Converts to this type from the input type.
Source§impl From<WebSocketError> for DrmError
impl From<WebSocketError> for DrmError
Source§fn from(source: WebSocketError) -> Self
fn from(source: WebSocketError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DrmError
impl !RefUnwindSafe for DrmError
impl Send for DrmError
impl Sync for DrmError
impl Unpin for DrmError
impl !UnwindSafe for DrmError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more