Struct medea_jason::platform::Error
source · pub struct Error(_);
Expand description
Wrapper for Dart exception thrown when calling Dart code.
Implementations§
source§impl Error
impl Error
sourcepub unsafe fn from_handle(h: Dart_Handle) -> Self
pub unsafe fn from_handle(h: Dart_Handle) -> Self
Creates a Dart Error
out of the provided Dart_Handle
from Dart
side.
Safety
The provided Dart_Handle
should be non-null
and point to the
correct Dart exception.
sourcepub fn get_handle(&self) -> Dart_Handle
pub fn get_handle(&self) -> Dart_Handle
Returns a Dart_Handle
to the underlying error.
Trait Implementations§
source§impl From<Error> for EnumerateDevicesError
impl From<Error> for EnumerateDevicesError
source§fn from(original: Error) -> EnumerateDevicesError
fn from(original: Error) -> EnumerateDevicesError
Converts to this type from the input type.
source§impl From<Error> for EnumerateDisplaysError
impl From<Error> for EnumerateDisplaysError
source§fn from(original: Error) -> EnumerateDisplaysError
fn from(original: Error) -> EnumerateDisplaysError
Converts to this type from the input type.
source§impl From<Error> for GetDisplayMediaError
impl From<Error> for GetDisplayMediaError
source§fn from(original: Error) -> GetDisplayMediaError
fn from(original: Error) -> GetDisplayMediaError
Converts to this type from the input type.
source§impl From<Error> for GetUserMediaError
impl From<Error> for GetUserMediaError
source§impl From<Error> for InsertTrackError
impl From<Error> for InsertTrackError
source§fn from(original: Error) -> InsertTrackError
fn from(original: Error) -> InsertTrackError
Converts to this type from the input type.
source§impl From<Error> for MicVolumeError
impl From<Error> for MicVolumeError
source§fn from(original: Error) -> MicVolumeError
fn from(original: Error) -> MicVolumeError
Converts to this type from the input type.
source§impl From<Error> for RtcStatsError
impl From<Error> for RtcStatsError
source§fn from(original: Error) -> RtcStatsError
fn from(original: Error) -> RtcStatsError
Converts to this type from the input type.
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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