pub struct OriginEndpoints<O: Origin> { /* private fields */ }Implementations§
Source§impl OriginEndpoints<FabricOrigin>
impl OriginEndpoints<FabricOrigin>
pub fn for_flavor(flavor: FabricFlavor) -> Result<Self>
pub fn with_endpoint_overrides( overrides: FabricEndpointOverrides, ) -> Result<Self>
pub fn game_versions_url(&self) -> Result<String>
pub fn loader_versions_url(&self, game_version: &str) -> Result<String>
pub fn loader_profile_url( &self, game_version: &str, loader_version: &str, ) -> Result<String>
pub fn profile_json_url( &self, game_version: &str, loader_version: &str, ) -> Result<String>
Source§impl OriginEndpoints<QuiltOrigin>
impl OriginEndpoints<QuiltOrigin>
pub fn game_versions_url(&self) -> Result<String>
pub fn loader_versions_url(&self, game_version: &str) -> Result<String>
pub fn profile_json_url( &self, game_version: &str, loader_version: &str, ) -> Result<String>
Source§impl<O: Origin> OriginEndpoints<O>
impl<O: Origin> OriginEndpoints<O>
pub fn new(origin_policy: OriginPolicy<O>) -> Self
pub fn official() -> Self
pub fn with_overrides<const N: usize>( overrides: [(O, String); N], ) -> Result<Self>
pub fn origin_policy(&self) -> &OriginPolicy<O>
pub fn resolve(&self, origin: O, path: &str) -> Result<String>
pub fn resolve_segments<const N: usize>( &self, origin: O, segments: [&str; N], ) -> Result<String>
pub fn rewrite_upstream(&self, raw_url: &str) -> Result<String>
pub fn rewrite_known_or_keep(&self, raw_url: &str) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl<O> Forget for OriginEndpoints<O>
impl<O> Freeze for OriginEndpoints<O>where
OriginPolicy<O>: Freeze,
impl<O> Move for OriginEndpoints<O>
impl<O> RefUnwindSafe for OriginEndpoints<O>where
OriginPolicy<O>: RefUnwindSafe,
impl<O> Send for OriginEndpoints<O>where
OriginPolicy<O>: Send,
impl<O> Sync for OriginEndpoints<O>where
OriginPolicy<O>: Sync,
impl<O> Unpin for OriginEndpoints<O>where
OriginPolicy<O>: Unpin,
impl<O> UnsafeUnpin for OriginEndpoints<O>where
OriginPolicy<O>: UnsafeUnpin,
impl<O> UnwindSafe for OriginEndpoints<O>where
OriginPolicy<O>: 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