pub struct NodejsOrgBackend { /* private fields */ }Implementations§
Source§impl NodejsOrgBackend
impl NodejsOrgBackend
pub fn new(paths: &Paths, target: &Triple) -> Result<Self>
Sourcepub fn client(&self) -> &Client
pub fn client(&self) -> &Client
Borrow the backend’s HTTP client so the install command can drive
bougie_fetch::fetch_blob without rebuilding one.
Sourcepub fn resolve(&self, req: &NodeRequest) -> Result<NodeRecipe>
pub fn resolve(&self, req: &NodeRequest) -> Result<NodeRecipe>
Resolve a request against the live index, then look up the
checksum for the host’s platform file. Network I/O happens here
(index.json + SHASUMS256.txt fetch); no filesystem state under
$BOUGIE_HOME is mutated.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NodejsOrgBackend
impl !UnwindSafe for NodejsOrgBackend
impl Freeze for NodejsOrgBackend
impl Send for NodejsOrgBackend
impl Sync for NodejsOrgBackend
impl Unpin for NodejsOrgBackend
impl UnsafeUnpin for NodejsOrgBackend
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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