Struct deno_webgpu::error::WebGpuResult [−][src]
pub struct WebGpuResult { pub rid: Option<ResourceId>, pub err: Option<WebGpuError>, }
Fields
rid: Option<ResourceId>
err: Option<WebGpuError>
Implementations
impl WebGpuResult
[src]
impl WebGpuResult
[src]pub fn rid(rid: ResourceId) -> Self
[src]
pub fn rid_err<T: Into<WebGpuError>>(rid: ResourceId, err: Option<T>) -> Self
[src]
pub fn maybe_err<T: Into<WebGpuError>>(err: Option<T>) -> Self
[src]
pub fn empty() -> Self
[src]
Trait Implementations
impl Serialize for WebGpuResult
[src]
impl Serialize for WebGpuResult
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Serializable for T where
T: Serialize,
impl<T> Serializable for T where
T: Serialize,