pub struct Sampler<F: Send + 'static> { /* private fields */ }
Implementations§
Source§impl<F: Send + 'static> Sampler<F>
impl<F: Send + 'static> Sampler<F>
pub fn new<M, S, C, T>( model: M, settings: S, trace_config: C, num_cores: usize, callback: Option<ProgressCallback>, ) -> Result<Self>
pub fn pause(&mut self) -> Result<()>
pub fn resume(&mut self) -> Result<()>
pub fn flush(&mut self) -> Result<()>
pub fn inspect(&mut self) -> Result<(Option<Error>, F)>
pub fn abort(self) -> Result<(Option<Error>, F)>
pub fn wait_timeout(self, timeout: Duration) -> SamplerWaitResult<F>
pub fn progress(&mut self) -> Result<Box<[ChainProgress]>>
Auto Trait Implementations§
impl<F> Freeze for Sampler<F>
impl<F> !RefUnwindSafe for Sampler<F>
impl<F> Send for Sampler<F>
impl<F> !Sync for Sampler<F>
impl<F> Unpin for Sampler<F>
impl<F> !UnwindSafe for Sampler<F>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more