pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(config: ClientConfig, cache: &Path) -> Result<Self>
pub fn store(&self) -> Arc<BlobStore> ⓘ
pub async fn daemon_url(&self) -> Option<&str>
Sourcepub async fn resolve(&self, reference: &Reference) -> Result<Cid>
pub async fn resolve(&self, reference: &Reference) -> Result<Cid>
Observe signed roots for the configured window, including after EOSE. A quiet/failed local subscription falls back to configured relays unless local-daemon-only was explicitly requested. Absence is reported as timeout.
Sourcepub async fn resolve_ready(&self, reference: &Reference) -> Result<Cid>
pub async fn resolve_ready(&self, reference: &Reference) -> Result<Cid>
Return a usable signed root immediately; this does not promise the latest
root across every relay. Use resolve when an observation window is needed.
Local discovery and public relays run together; unsigned daemon responses
never supply the result. Quiet lookups end at the configured deadline.
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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