Struct rutabaga_gfx::kumquat_support::RutabagaStream
source · pub struct RutabagaStream {
stream: Tube,
write_buffer: [u8; 4096],
read_buffer: [u8; 4096],
descriptors: [RawDescriptor; 1],
}
Fields§
§stream: Tube
§write_buffer: [u8; 4096]
§read_buffer: [u8; 4096]
§descriptors: [RawDescriptor; 1]
Implementations§
source§impl RutabagaStream
impl RutabagaStream
pub fn new(stream: Tube) -> RutabagaStream
pub fn write<T: FromBytes + AsBytes>( &mut self, encode: KumquatGpuProtocolWrite<T> ) -> RutabagaResult<()>
pub fn read(&mut self) -> RutabagaResult<Vec<KumquatGpuProtocol>>
pub fn as_borrowed_descriptor(&self) -> &OwnedDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for RutabagaStream
impl Send for RutabagaStream
impl Sync for RutabagaStream
impl Unpin for RutabagaStream
impl UnwindSafe for RutabagaStream
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