pub struct KeyScope<E>(/* private fields */)
where
E: Executor;
Implementations§
Source§impl<E> KeyScope<E>where
E: Executor,
impl<E> KeyScope<E>where
E: Executor,
pub fn new(executor: E) -> Self
Sourcepub async fn log<S>(
self,
builder: impl FnOnce(KeyLogRequestBuilder<Empty>) -> KeyLogRequestBuilder<S>,
) -> Result<KeyLogResponse, E::Error>where
S: IsComplete,
pub async fn log<S>(
self,
builder: impl FnOnce(KeyLogRequestBuilder<Empty>) -> KeyLogRequestBuilder<S>,
) -> Result<KeyLogResponse, E::Error>where
S: IsComplete,
Get current key log history
§Description
Available for any key.
- This selection contains up to last 250 request logs.
Sourcepub async fn info<S>(
self,
builder: impl FnOnce(KeyInfoRequestBuilder<Empty>) -> KeyInfoRequestBuilder<S>,
) -> Result<KeyInfoResponse, E::Error>where
S: IsComplete,
pub async fn info<S>(
self,
builder: impl FnOnce(KeyInfoRequestBuilder<Empty>) -> KeyInfoRequestBuilder<S>,
) -> Result<KeyInfoResponse, E::Error>where
S: IsComplete,
Sourcepub async fn for_selections<S>(
self,
builder: impl FnOnce(KeyRequestBuilder<Empty>) -> KeyRequestBuilder<S>,
) -> Result<Response, E::Error>where
S: IsComplete,
pub async fn for_selections<S>(
self,
builder: impl FnOnce(KeyRequestBuilder<Empty>) -> KeyRequestBuilder<S>,
) -> Result<Response, E::Error>where
S: IsComplete,
Get any Key selection
Auto Trait Implementations§
impl<E> Freeze for KeyScope<E>where
E: Freeze,
impl<E> RefUnwindSafe for KeyScope<E>where
E: RefUnwindSafe,
impl<E> Send for KeyScope<E>where
E: Send,
impl<E> Sync for KeyScope<E>where
E: Sync,
impl<E> Unpin for KeyScope<E>where
E: Unpin,
impl<E> UnwindSafe for KeyScope<E>where
E: 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