Struct torn_key_pool::local::KeyPool
source · pub struct KeyPool<C, S>where
C: ApiClient,
S: KeyPoolStorage,{
pub storage: S,
/* private fields */
}Fields§
§storage: SImplementations§
source§impl<C, S> KeyPool<C, S>where
C: ApiClient,
S: KeyPoolStorage + 'static,
impl<C, S> KeyPool<C, S>where C: ApiClient, S: KeyPoolStorage + 'static,
pub fn new(client: C, storage: S, comment: Option<String>) -> Self
pub fn torn_api<I>( &self, selector: I ) -> ApiProvider<'_, C, KeyPoolExecutor<'_, C, S>>where I: IntoSelector<S::Key, S::Domain>,
Trait Implementations§
Auto Trait Implementations§
impl<C, S> RefUnwindSafe for KeyPool<C, S>where C: RefUnwindSafe, S: RefUnwindSafe,
impl<C, S> Send for KeyPool<C, S>where C: Send, S: Send,
impl<C, S> Sync for KeyPool<C, S>where C: Sync, S: Sync,
impl<C, S> Unpin for KeyPool<C, S>where C: Unpin, S: Unpin,
impl<C, S> UnwindSafe for KeyPool<C, S>where C: UnwindSafe, S: UnwindSafe,
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