#[non_exhaustive]pub enum StreamBinding {
Default(Arc<Context>),
Borrowed(BorrowedStream),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default(Arc<Context>)
Borrowed(BorrowedStream)
Implementations§
Source§impl StreamBinding
impl StreamBinding
pub fn context(&self) -> &Context
pub fn is_default(&self) -> bool
pub fn as_raw(&self) -> cudaStream_t
Trait Implementations§
Source§impl Clone for StreamBinding
impl Clone for StreamBinding
Source§fn clone(&self) -> StreamBinding
fn clone(&self) -> StreamBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for StreamBinding
impl !Sync for StreamBinding
impl Freeze for StreamBinding
impl RefUnwindSafe for StreamBinding
impl Unpin for StreamBinding
impl UnsafeUnpin for StreamBinding
impl UnwindSafe for StreamBinding
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