pub enum StreamPoolError {
Capacity {
max: usize,
},
ForkFailed(String),
}Expand description
Errors returned by StreamPool::acquire. Both variants are hard
failures; callers must not silently substitute StreamId::DEFAULT.
Variants§
Capacity
Pool already holds max non-default streams. Caller should
either reuse an existing acquired id or raise the pool cap via
the runtime config.
ForkFailed(String)
CudaStream::fork returned an error. Carries the wrapped
driver message.
Trait Implementations§
Source§impl Debug for StreamPoolError
impl Debug for StreamPoolError
Source§impl Display for StreamPoolError
impl Display for StreamPoolError
Source§impl Error for StreamPoolError
impl Error for StreamPoolError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for StreamPoolError
impl RefUnwindSafe for StreamPoolError
impl Send for StreamPoolError
impl Sync for StreamPoolError
impl Unpin for StreamPoolError
impl UnsafeUnpin for StreamPoolError
impl UnwindSafe for StreamPoolError
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