pub struct FallbackBackend { /* private fields */ }Expand description
Blocking worker backend.
Implementations§
Source§impl FallbackBackend
impl FallbackBackend
Sourcepub fn new(
config: &RingConfig,
completion_tx: Sender<BackendCompletion>,
) -> Result<Self>
pub fn new( config: &RingConfig, completion_tx: Sender<BackendCompletion>, ) -> Result<Self>
Creates a fallback backend with the configured worker count.
§Errors
Returns an error if the completion channel sender cannot be cloned or worker thread spawning fails.
Trait Implementations§
Source§impl Backend for FallbackBackend
impl Backend for FallbackBackend
Auto Trait Implementations§
impl !Freeze for FallbackBackend
impl RefUnwindSafe for FallbackBackend
impl Send for FallbackBackend
impl Sync for FallbackBackend
impl Unpin for FallbackBackend
impl UnsafeUnpin for FallbackBackend
impl UnwindSafe for FallbackBackend
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