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
BadIdFormat
VideoUnavailable(Box<PlayabilityStatus>)
This is supported on crate feature
fetch only.NoStreams
This is supported on crate feature
download only.IO(Error)
Tuple Fields
0: ErrorThis is supported on crate feature
fetch only.Request(Error)
Tuple Fields
0: ErrorThis is supported on crate feature
fetch only.UnexpectedResponse(Cow<'static, str>)
QueryDeserialization(Error)
Tuple Fields
0: ErrorThis is supported on crate feature
fetch only.JsonDeserialization(Error)
Tuple Fields
0: ErrorThis is supported on crate feature
fetch only.UrlParseError(ParseError)
Tuple Fields
0: ParseErrorCustom(Cow<'static, str>)
Fatal(String)
Tuple Fields
0: StringInternal(&'static str)
Tuple Fields
0: &'static strChannelClosed
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
