pub struct LiteLoaderSource { /* private fields */ }Expand description
Remote metadata client for fetching LiteLoader version manifests.
Implementations§
Source§impl LiteLoaderSource
impl LiteLoaderSource
pub async fn profile_json( &self, game_version: &str, loader_version: &str, ) -> Result<ProfileJson>
Source§impl LiteLoaderSource
impl LiteLoaderSource
Sourcepub fn new(endpoints: LiteLoaderEndpoints) -> Self
pub fn new(endpoints: LiteLoaderEndpoints) -> Self
Creates a LiteLoaderSource targeting endpoints with a default HTTP client.
Sourcepub fn with_http_client(self, client: SwappableClient) -> Self
pub fn with_http_client(self, client: SwappableClient) -> Self
Replaces the SwappableClient used for LiteLoader HTTP requests.
Sourcepub fn endpoints(&self) -> &LiteLoaderEndpoints
pub fn endpoints(&self) -> &LiteLoaderEndpoints
Returns the configured LiteLoaderEndpoints.
Sourcepub async fn releases(&self) -> Result<Vec<LiteLoaderRelease>>
pub async fn releases(&self) -> Result<Vec<LiteLoaderRelease>>
Fetches and returns all available LiteLoaderRelease entries.
Trait Implementations§
Source§impl Clone for LiteLoaderSource
impl Clone for LiteLoaderSource
Source§impl Debug for LiteLoaderSource
impl Debug for LiteLoaderSource
Auto Trait Implementations§
impl Forget for LiteLoaderSource
impl Freeze for LiteLoaderSourcewhere
*const ArcInner<RwLock<ClientState>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ClientState>>>: Freeze,
*const [Pos] is !null: Freeze,
PhantomData<[Pos]>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Bucket<HeaderValue>>: Freeze,
PhantomData<ExtraValue<HeaderValue>>: Freeze,
PhantomData<(String, Url)>: Freeze,
impl Move for LiteLoaderSource
impl RefUnwindSafe for LiteLoaderSourcewhere
Atomic<usize>: RefUnwindSafe,
RwLock<ClientState>: RefUnwindSafe,
Atomic<*mut ()>: RefUnwindSafe,
impl Send for LiteLoaderSource
impl Sync for LiteLoaderSource
impl Unpin for LiteLoaderSource
impl UnsafeUnpin for LiteLoaderSourcewhere
*const ArcInner<RwLock<ClientState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ClientState>>>: UnsafeUnpin,
*const [Pos] is !null: UnsafeUnpin,
PhantomData<[Pos]>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Bucket<HeaderValue>>: UnsafeUnpin,
PhantomData<ExtraValue<HeaderValue>>: UnsafeUnpin,
PhantomData<(String, Url)>: UnsafeUnpin,
impl UnwindSafe for LiteLoaderSourcewhere
Arc<RwLock<ClientState>>: UnwindSafe,
BoxRaw<[Pos]>: UnwindSafe,
RawVecInner: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: 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