pub struct Runtime { /* private fields */ }
Expand description
Main runtime context
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn default_stream(&self) -> &Stream
pub fn default_stream(&self) -> &Stream
Get the default stream
Sourcepub fn create_stream(&self) -> Result<Stream>
pub fn create_stream(&self) -> Result<Stream>
Create a new stream
Sourcepub fn synchronize(&self) -> Result<()>
pub fn synchronize(&self) -> Result<()>
Synchronize all operations
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
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