pub struct Thread<'a, T: RpcTransport<Error = Error>> {
pub reference: ThreadRef,
/* private fields */
}Fields§
§reference: ThreadRefImplementations§
Source§impl<T: RpcTransport<Error = Error>> Thread<'_, T>
impl<T: RpcTransport<Error = Error>> Thread<'_, T>
Sourcepub async fn publish_source(
&self,
source: &SourcePack,
originals: &PublicationOriginals,
options: PublicationOptions,
) -> Result<PublicationReceipt, Error>
pub async fn publish_source( &self, source: &SourcePack, originals: &PublicationOriginals, options: PublicationOptions, ) -> Result<PublicationReceipt, Error>
One exchange, directly to this Thread’s endpoint. The source capture must carry its complete original proofs. Preparation and binding are local; no head lookup, proxy call or implicit capture happens here.
Sourcepub fn prepare_publication(
&self,
source: &SourcePack,
originals: PublicationOriginals,
options: PublicationOptions,
spool_genesis: ContentHash,
) -> Result<PreparedPublication, Error>
pub fn prepare_publication( &self, source: &SourcePack, originals: PublicationOriginals, options: PublicationOptions, spool_genesis: ContentHash, ) -> Result<PreparedPublication, Error>
Local preparation over exact source/originals; no network authorization or implicit acceptance. Call sign_acceptance explicitly, then send_prepared.
pub async fn send_prepared( &self, source: &SourcePack, prepared: &PreparedPublication, ) -> Result<PublicationReceipt, Error>
Source§impl<T: RpcTransport<Error = Error>> Thread<'_, T>
impl<T: RpcTransport<Error = Error>> Thread<'_, T>
Sourcepub async fn revise_intent(
&self,
command: &PreparedControl,
) -> Result<ThreadMutationResponse, ClientError<Error>>
pub async fn revise_intent( &self, command: &PreparedControl, ) -> Result<ThreadMutationResponse, ClientError<Error>>
Send a locally prepared original signed intent. Preparation consumes the existing overview’s field frontier and performs no extra RPC.
pub async fn observe( &self, sections: &[ThreadSection], mode: ObservationMode, resume: Option<Resume>, ) -> Result<ThreadObservation<T::Reader>, Error>
Auto Trait Implementations§
impl<'a, T> Freeze for Thread<'a, T>
impl<'a, T> RefUnwindSafe for Thread<'a, T>where
&'a Remote<T>: RefUnwindSafe,
impl<'a, T> Send for Thread<'a, T>
impl<'a, T> Sync for Thread<'a, T>
impl<'a, T> Unpin for Thread<'a, T>
impl<'a, T> UnsafeUnpin for Thread<'a, T>where
&'a Remote<T>: UnsafeUnpin,
impl<'a, T> UnwindSafe for Thread<'a, T>where
&'a Remote<T>: 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
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