pub struct MpscComputeChannel<Server>where
Server: ComputeServer,{ /* private fields */ }Expand description
Create a channel using the multi-producer, single-consumer channel to communicate with the compute server spawn on its own thread.
Implementations§
Source§impl<Server> MpscComputeChannel<Server>where
Server: ComputeServer + 'static,
impl<Server> MpscComputeChannel<Server>where
Server: ComputeServer + 'static,
Trait Implementations§
Source§impl<Server: ComputeServer> Clone for MpscComputeChannel<Server>
impl<Server: ComputeServer> Clone for MpscComputeChannel<Server>
Source§impl<Server> ComputeChannel<Server> for MpscComputeChannel<Server>where
Server: ComputeServer + 'static,
impl<Server> ComputeChannel<Server> for MpscComputeChannel<Server>where
Server: ComputeServer + 'static,
Source§fn read(&self, handle: &Handle<Server>) -> Reader<Vec<u8>>
fn read(&self, handle: &Handle<Server>) -> Reader<Vec<u8>>
Given a handle, returns owned resource as bytes
Source§fn create(&self, data: &[u8]) -> Handle<Server>
fn create(&self, data: &[u8]) -> Handle<Server>
Given a resource as bytes, stores it and returns the resource handle
Source§fn empty(&self, size: usize) -> Handle<Server>
fn empty(&self, size: usize) -> Handle<Server>
Reserves
size bytes in the storage, and returns a handle over themAuto Trait Implementations§
impl<Server> !RefUnwindSafe for MpscComputeChannel<Server>
impl<Server> !UnwindSafe for MpscComputeChannel<Server>
impl<Server> Freeze for MpscComputeChannel<Server>
impl<Server> Send for MpscComputeChannel<Server>
impl<Server> Sync for MpscComputeChannel<Server>
impl<Server> Unpin for MpscComputeChannel<Server>
impl<Server> UnsafeUnpin for MpscComputeChannel<Server>
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