pub struct Sampler { /* private fields */ }
Implementations§
Source§impl Sampler
impl Sampler
pub fn new<S: Settings, M: Model>( model: M, settings: S, num_cores: usize, callback: Option<ProgressCallback>, ) -> Result<Self>
pub fn pause(&mut self) -> Result<()>
pub fn resume(&mut self) -> Result<()>
pub fn abort(self) -> (Result<()>, Option<Trace>)
pub fn inspect_trace(&mut self) -> Result<Trace>
pub fn wait_timeout(self, timeout: Duration) -> SamplerWaitResult
pub fn progress(&mut self) -> Result<Box<[ChainProgress]>>
Auto Trait Implementations§
impl Freeze for Sampler
impl !RefUnwindSafe for Sampler
impl Send for Sampler
impl !Sync for Sampler
impl Unpin for Sampler
impl !UnwindSafe for Sampler
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