struct Hub {
client: Client,
endpoint: String,
token: Option<String>,
}Fields§
§client: Client§endpoint: String§token: Option<String>Implementations§
Source§impl Hub
impl Hub
Sourcepub(super) fn headers(
&self,
root: &[&str],
files: &[String],
events: &mut dyn FnMut(ModelEvent),
) -> Result<Vec<(RemoteObject, Inventory)>>
pub(super) fn headers( &self, root: &[&str], files: &[String], events: &mut dyn FnMut(ModelEvent), ) -> Result<Vec<(RemoteObject, Inventory)>>
Workers only fetch data. The caller emits events and restores file order.
Sourcefn fetch_headers(
&self,
requests: &[Request<'_>],
next: &AtomicUsize,
failed: &AtomicBool,
sender: SyncSender<(usize, Result<(RemoteObject, Inventory)>)>,
)
fn fetch_headers( &self, requests: &[Request<'_>], next: &AtomicUsize, failed: &AtomicBool, sender: SyncSender<(usize, Result<(RemoteObject, Inventory)>)>, )
Stop claiming shards after an error; finish and drain shards already claimed.
fn header(&self, request: &Request<'_>) -> Result<(RemoteObject, Inventory)>
Source§impl Hub
impl Hub
fn get(&self, url: Url) -> RequestBuilder
fn url(&self, components: &[&str]) -> Result<Url>
fn json(&self, components: &[&str]) -> Result<Value>
fn inspect( &self, repo: &str, revision: &str, events: &mut dyn FnMut(ModelEvent), ) -> Result<(Source, ModelDescription)>
fn range(&self, url: Url, offset: u64, length: u64) -> Result<(Vec<u8>, u64)>
Auto Trait Implementations§
impl !RefUnwindSafe for Hub
impl !UnwindSafe for Hub
impl Freeze for Hub
impl Send for Hub
impl Sync for Hub
impl Unpin for Hub
impl UnsafeUnpin for Hub
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 more