pub trait MediaStreamExtManual:
Sealed
+ IsA<MediaStream>
+ 'static {
// Provided method
fn set_error(&self, error: Error) { ... }
}
Provided Methods§
Sourcefn set_error(&self, error: Error)
fn set_error(&self, error: Error)
Sets @self into an error state.
This will pause the stream (you can check for an error
via MediaStreamExt::error()
in your
GtkMediaStream.pause() implementation), abort pending
seeks and mark the stream as prepared.
if the stream is already in an error state, this call will be ignored and the existing error will be retained.
To unset an error, the stream must be reset via a call to
MediaStreamExt::unprepared()
.
§error
the GError
to set
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.