Struct stdweb::web::error::TypeError [−][src]
pub struct TypeError(_);
Used to indicate an unsuccessful operation when none of the other NativeError objects are an appropriate indication of the failure cause.
Trait Implementations
impl Clone for TypeError
[src]
impl Clone for TypeError
fn clone(&self) -> TypeError
[src]
fn clone(&self) -> TypeError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for TypeError
[src]
impl Debug for TypeError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<TypeError> for Error
[src]
impl From<TypeError> for Error
impl TryFrom<Error> for TypeError
[src]
impl TryFrom<Error> for TypeError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Error) -> Result<Self, Self::Error>
[src]
fn try_from(value: Error) -> Result<Self, Self::Error>
Performs the conversion.
impl From<TypeError> for DomException
[src]
impl From<TypeError> for DomException
impl TryFrom<DomException> for TypeError
[src]
impl TryFrom<DomException> for TypeError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: DomException) -> Result<Self, Self::Error>
[src]
fn try_from(value: DomException) -> Result<Self, Self::Error>
Performs the conversion.
impl AsRef<Reference> for TypeError
[src]
impl AsRef<Reference> for TypeError
impl ReferenceType for TypeError
[src]
impl ReferenceType for TypeError
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more
impl From<TypeError> for Reference
[src]
impl From<TypeError> for Reference
impl TryFrom<TypeError> for Reference
[src]
impl TryFrom<TypeError> for Reference
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: TypeError) -> Result<Self, Self::Error>
[src]
fn try_from(value: TypeError) -> Result<Self, Self::Error>
Performs the conversion.
impl TryFrom<Reference> for TypeError
[src]
impl TryFrom<Reference> for TypeError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>
[src]
fn try_from(reference: Reference) -> Result<Self, Self::Error>
Performs the conversion.
impl<'_r> TryFrom<&'_r Reference> for TypeError
[src]
impl<'_r> TryFrom<&'_r Reference> for TypeError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
[src]
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
Performs the conversion.
impl TryFrom<Value> for TypeError
[src]
impl TryFrom<Value> for TypeError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
fn try_from(value: Value) -> Result<Self, Self::Error>
Performs the conversion.
impl<'_r> TryFrom<&'_r Value> for TypeError
[src]
impl<'_r> TryFrom<&'_r Value> for TypeError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>
[src]
fn try_from(value: &Value) -> Result<Self, Self::Error>
Performs the conversion.
impl JsSerialize for TypeError
[src]
impl JsSerialize for TypeError
impl IError for TypeError
[src]
impl IError for TypeError
fn message(&self) -> String
[src]
fn message(&self) -> String
Returns a human-readable description of the error. Read more
fn name(&self) -> String
[src]
fn name(&self) -> String
Returns a name specifiying the type of error. Read more
impl IDomException for TypeError
[src]
impl IDomException for TypeError
impl InstanceOf for TypeError
[src]
impl InstanceOf for TypeError
fn instance_of(reference: &Reference) -> bool
[src]
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type Self
.
impl Display for TypeError
[src]
impl Display for TypeError
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for TypeError
[src]
impl Error for TypeError