pub struct RiftSource { /* private fields */ }Implementations§
Source§impl RiftSource
impl RiftSource
pub fn new(endpoints: RiftEndpoints) -> Self
pub fn with_client(endpoints: RiftEndpoints, client: Client) -> Self
pub fn with_http_client(self, client: SwappableClient) -> Self
pub fn with_headers(self, headers: HeaderMap) -> Self
pub fn with_header(self, name: HeaderName, value: HeaderValue) -> Self
pub fn endpoints(&self) -> &RiftEndpoints
pub async fn releases(&self) -> Result<Vec<RiftRelease>>
pub async fn profile_json(&self, loader_version: &str) -> Result<ProfileJson>
pub async fn profile_json_for_release( &self, release: &RiftRelease, ) -> Result<ProfileJson>
Trait Implementations§
Source§impl Clone for RiftSource
impl Clone for RiftSource
Source§impl Debug for RiftSource
impl Debug for RiftSource
Auto Trait Implementations§
impl Forget for RiftSource
impl Freeze for RiftSourcewhere
*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 RiftSource
impl RefUnwindSafe for RiftSourcewhere
Atomic<usize>: RefUnwindSafe,
RwLock<ClientState>: RefUnwindSafe,
Atomic<*mut ()>: RefUnwindSafe,
impl Send for RiftSource
impl Sync for RiftSource
impl Unpin for RiftSource
impl UnsafeUnpin for RiftSourcewhere
*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 RiftSourcewhere
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