Enum rustube::Error [−][src]
pub enum Error {
Show 13 variants
BadIdFormat,
VideoUnavailable(Box<PlayabilityStatus>),
NoStreams,
IO(Error),
Request(Error),
UnexpectedResponse(Cow<'static, str>),
QueryDeserialization(Error),
JsonDeserialization(Error),
UrlParseError(ParseError),
Custom(Cow<'static, str>),
Fatal(String),
Internal(&'static str),
ChannelClosed,
}
Expand description
Errors that can occur during the id extraction or the video download process.
Variants
This is supported on crate feature
fetch
only.This is supported on crate feature
download
only.IO(Error)
This is supported on crate feature
fetch
only.Tuple Fields of IO
0: Error
Request(Error)
This is supported on crate feature
fetch
only.Tuple Fields of Request
0: Error
QueryDeserialization(Error)
This is supported on crate feature
fetch
only.Tuple Fields of QueryDeserialization
0: Error
JsonDeserialization(Error)
This is supported on crate feature
fetch
only.Tuple Fields of JsonDeserialization
0: Error
UrlParseError(ParseError)
Tuple Fields of UrlParseError
0: ParseError
Fatal(String)
Tuple Fields of Fatal
0: String
Internal(&'static str)
Tuple Fields of Internal
0: &'static str
This is supported on crate feature
callback
only.Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more