pub struct HttpModelSource { /* private fields */ }Implementations§
Source§impl HttpModelSource
impl HttpModelSource
pub fn new() -> Result<Self, AcquisitionError>
pub fn allow_insecure_http(self, allow: bool) -> Self
Trait Implementations§
Source§impl Clone for HttpModelSource
impl Clone for HttpModelSource
Source§impl Debug for HttpModelSource
impl Debug for HttpModelSource
Source§impl ModelSource for HttpModelSource
impl ModelSource for HttpModelSource
fn fetch<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
request: &'life1 ModelFetchRequest,
destination: &'life2 Path,
config: &'life3 AcquisitionConfig,
cancellation: Option<&'life4 CancellationToken>,
) -> Pin<Box<dyn Future<Output = Result<ModelArtifact, AcquisitionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for HttpModelSource
impl !UnwindSafe for HttpModelSource
impl Freeze for HttpModelSource
impl Send for HttpModelSource
impl Sync for HttpModelSource
impl Unpin for HttpModelSource
impl UnsafeUnpin for HttpModelSource
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