pub(super) struct ServiceKeyStore {
client: Client,
endpoint: Url,
profile_key_validator: ArcSwapOption<ProfileKeyValidator>,
}Expand description
Cached Mojang service keys used to validate player-key certificates.
Fields§
§client: Client§endpoint: Url§profile_key_validator: ArcSwapOption<ProfileKeyValidator>Implementations§
Source§impl ServiceKeyStore
impl ServiceKeyStore
pub(super) fn new(endpoint: Option<&str>) -> Result<Self, ServiceKeyError>
pub(super) fn profile_key_validator(&self) -> Option<Arc<ProfileKeyValidator>>
Sourcepub(super) fn start(
self: &Arc<Self>,
cancel_token: CancellationToken,
) -> Receiver<()> ⓘ
pub(super) fn start( self: &Arc<Self>, cancel_token: CancellationToken, ) -> Receiver<()> ⓘ
Starts the initial fetch and returns a signal completed after its first attempt.
async fn refresh(&self) -> Result<(), ServiceKeyError>
Auto Trait Implementations§
impl !Freeze for ServiceKeyStore
impl !RefUnwindSafe for ServiceKeyStore
impl !UnwindSafe for ServiceKeyStore
impl Send for ServiceKeyStore
impl Sync for ServiceKeyStore
impl Unpin for ServiceKeyStore
impl UnsafeUnpin for ServiceKeyStore
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>