Skip to main content

DecodedRequestBody

Enum DecodedRequestBody 

Source
pub enum DecodedRequestBody<'a> {
Show 15 variants GetDeviceInfo, CreateContext(ContextDesc), DestroyContext { context_id: ObjectId, }, AllocateBuffer { context_id: ObjectId, desc: BufferDesc, }, FreeBuffer { buffer_id: ObjectId, }, WriteBuffer { buffer_id: ObjectId, range: BufferRange, data: ReadableRegion<'a>, }, ReadBuffer { buffer_id: ObjectId, range: BufferRange, }, LoadProgram { context_id: ObjectId, format: ArtifactFormat, target: TargetIdentity, payload: ReadableRegion<'a>, resident_bytes: u64, }, UnloadProgram { program_id: ObjectId, }, CreateQueue { context_id: ObjectId, desc: QueueDesc, }, DestroyQueue { queue_id: ObjectId, }, Submit { queue_id: ObjectId, program_id: ObjectId, bindings: Vec<DecodedBinding>, timeout: Timeout, }, PollEvent { event_id: ObjectId, }, CancelEvent { event_id: ObjectId, }, DestroyEvent { event_id: ObjectId, },
}

Variants§

§

GetDeviceInfo

§

CreateContext(ContextDesc)

§

DestroyContext

Fields

§context_id: ObjectId
§

AllocateBuffer

Fields

§context_id: ObjectId
§

FreeBuffer

Fields

§buffer_id: ObjectId
§

WriteBuffer

Fields

§buffer_id: ObjectId
§

ReadBuffer

Fields

§buffer_id: ObjectId
§

LoadProgram

Fields

§context_id: ObjectId
§payload: ReadableRegion<'a>
§resident_bytes: u64
§

UnloadProgram

Fields

§program_id: ObjectId
§

CreateQueue

Fields

§context_id: ObjectId
§

DestroyQueue

Fields

§queue_id: ObjectId
§

Submit

Fields

§queue_id: ObjectId
§program_id: ObjectId
§timeout: Timeout
§

PollEvent

Fields

§event_id: ObjectId
§

CancelEvent

Fields

§event_id: ObjectId
§

DestroyEvent

Fields

§event_id: ObjectId

Implementations§

Source§

impl DecodedRequestBody<'_>

Source

pub const fn opcode(&self) -> KnownOpcode

Trait Implementations§

Source§

impl<'a> Debug for DecodedRequestBody<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for DecodedRequestBody<'a>

§

impl<'a> !Send for DecodedRequestBody<'a>

§

impl<'a> !Sync for DecodedRequestBody<'a>

§

impl<'a> !UnwindSafe for DecodedRequestBody<'a>

§

impl<'a> Freeze for DecodedRequestBody<'a>

§

impl<'a> Unpin for DecodedRequestBody<'a>

§

impl<'a> UnsafeUnpin for DecodedRequestBody<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.