pub struct Client { /* private fields */ }Expand description
Typed adopter seam over the portable runtime. The JSON dispatcher remains private to adapters; consumers use typed lifecycle operations here.
Implementations§
Source§impl Client
impl Client
pub fn open(config: ClientConfig) -> Result<Self>
pub fn endpoint(&self) -> Result<EndpointInfo>
pub fn workspace_state(&self) -> Result<WorkspaceState>
pub fn create_workspace( &self, display_name: &str, workspace_name: Option<&str>, ) -> Result<WorkspaceInfo>
pub fn begin_join( &self, invitation: &[u8], checkpoint: &[u8], display_name: &str, ) -> Result<JoinRequest>
pub fn stage_admission( &self, authenticated_endpoint: [u8; 32], request: &[u8], ) -> Result<WorkspaceCandidate>
pub fn adopt_admission(&self, snapshot: &[u8]) -> Result<WorkspaceInfo>
pub fn retained_admission( &self, authenticated_endpoint: [u8; 32], request: &[u8], ) -> Result<AdmissionReply>
pub fn stage_join( &self, welcome: &[u8], commits: &[JoinAdmissionStep], ) -> Result<WorkspaceCandidate>
pub fn adopt_join(&self, snapshot: &[u8]) -> Result<WorkspaceInfo>
pub fn member_roster(&self) -> Result<MemberRoster>
pub fn issue_invitation(&self) -> Result<InvitationInfo>
pub fn inspect_invitation( &self, invitation: &[u8], checkpoint: &[u8], ) -> Result<InvitationDetails>
pub fn connectivity(&self) -> Result<ConnectivityReport>
pub fn metrics(&self) -> Result<WorkspaceMetrics>
pub fn network_change(&self) -> Result<()>
pub fn cancel(&self) -> Result<()>
pub fn wait_for_work(&self) -> Result<bool>
Sourcepub fn poll_control(&self) -> Result<bool>
pub fn poll_control(&self) -> Result<bool>
Service one queued peer-control exchange and report whether one was served.
pub fn add_address_hint(&self, peer: [u8; 32], address: &str) -> Result<()>
pub fn install_policy( &self, workspace: [u8; 32], revision: u64, endpoints: &[PeerPolicy], ) -> Result<()>
pub fn install_workspace_policy(&self, revision: u64) -> Result<()>
pub fn stage_protected_publication( &self, workspace: [u8; 32], revision: u64, topic: &str, id: [u8; 16], payload: Vec<u8>, ) -> Result<PublicationCandidate>
pub fn adopt_protected_publication( &self, snapshot: &[u8], ) -> Result<DeliveryReport>
pub fn set_interest( &self, workspace: [u8; 32], revision: u64, topic: &str, subscribed: bool, ) -> Result<()>
pub fn poll_interest(&self) -> Result<Option<InterestObservation>>
pub fn publish( &self, workspace: [u8; 32], revision: u64, topic: &str, payload: Vec<u8>, ) -> Result<DeliveryReport>
pub fn poll(&self) -> Result<Option<Publication>>
pub fn poll_recovered_publication(&self) -> Result<Option<RecoveredPublication>>
pub fn fetch_recovery_range( &self, request: RecoveryRangeRequest, ) -> Result<RecoveryRangeStatus>
pub fn poll_recovery_range(&self) -> Result<Option<RecoveryRangeStatus>>
pub fn cancel_recovery_range(&self) -> Result<()>
pub fn stage_recovery_range(&self, retain_until: u64) -> Result<RecoveryStage>
pub fn adopt_recovery(&self, snapshot: &[u8]) -> Result<RecoveryAdoption>
pub fn close(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Client
impl Freeze for Client
impl Move for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe 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