Struct deno_webgpu::error::WebGpuResult
source · [−]pub struct WebGpuResult {
pub rid: Option<ResourceId>,
pub err: Option<WebGpuError>,
}
Fields
rid: Option<ResourceId>
err: Option<WebGpuError>
Implementations
sourceimpl WebGpuResult
impl WebGpuResult
pub fn rid(rid: ResourceId) -> Self
pub fn rid_err<T: Into<WebGpuError>>(rid: ResourceId, err: Option<T>) -> Self
pub fn maybe_err<T: Into<WebGpuError>>(err: Option<T>) -> Self
pub fn empty() -> Self
Trait Implementations
sourceimpl Serialize for WebGpuResult
impl Serialize for WebGpuResult
Auto Trait Implementations
impl RefUnwindSafe for WebGpuResult
impl Send for WebGpuResult
impl Sync for WebGpuResult
impl Unpin for WebGpuResult
impl UnwindSafe for WebGpuResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more