Skip to main content

InProcessBackend

Struct InProcessBackend 

Source
pub struct InProcessBackend { /* private fields */ }

Implementations§

Source§

impl InProcessBackend

Source

pub fn new(config: InProcessBackendConfig) -> Self

Source

pub fn send_report( &self, message_id: &MessageId, ) -> Result<Option<InProcessSendReport>, SdkError>

Source

pub fn set_propagation_relay( &self, relay: Option<AddressHash>, ) -> Result<(), SdkError>

Source

pub fn record_delivery( &self, message_id: &MessageId, state: DeliveryState, reason: Option<String>, ) -> Result<(), SdkError>

Source

pub fn record_event( &self, event_type: &str, severity: Severity, payload: JsonValue, ) -> Result<(), SdkError>

Trait Implementations§

Source§

impl Clone for InProcessBackend

Source§

fn clone(&self) -> InProcessBackend

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl SdkBackend for InProcessBackend

Source§

fn negotiate( &self, _req: NegotiationRequest, ) -> Result<NegotiationResponse, SdkError>

Source§

fn send(&self, request: SendRequest) -> Result<MessageId, SdkError>

Source§

fn cancel(&self, _id: MessageId) -> Result<CancelResult, SdkError>

Source§

fn status(&self, id: MessageId) -> Result<Option<DeliverySnapshot>, SdkError>

Source§

fn configure( &self, _expected_revision: u64, _patch: ConfigPatch, ) -> Result<Ack, SdkError>

Source§

fn poll_events( &self, cursor: Option<EventCursor>, max: usize, ) -> Result<EventBatch, SdkError>

Source§

fn snapshot(&self) -> Result<RuntimeSnapshot, SdkError>

Source§

fn shutdown(&self, _mode: ShutdownMode) -> Result<Ack, SdkError>

Source§

fn router_stats(&self) -> Result<RouterStats, SdkError>

Source§

fn router_storage_policy(&self) -> Result<RouterStoragePolicy, SdkError>

Source§

fn set_router_storage_policy( &self, patch: RouterStoragePolicyPatch, ) -> Result<RouterStoragePolicy, SdkError>

Source§

fn tick(&self, _budget: TickBudget) -> Result<TickResult, SdkError>

Source§

fn topic_create( &self, _req: TopicCreateRequest, ) -> Result<TopicRecord, SdkError>

Source§

fn topic_get(&self, _topic_id: TopicId) -> Result<Option<TopicRecord>, SdkError>

Source§

fn topic_list( &self, _req: TopicListRequest, ) -> Result<TopicListResult, SdkError>

Source§

fn topic_subscribe( &self, _req: TopicSubscriptionRequest, ) -> Result<Ack, SdkError>

Source§

fn topic_unsubscribe(&self, _topic_id: TopicId) -> Result<Ack, SdkError>

Source§

fn topic_publish(&self, _req: TopicPublishRequest) -> Result<Ack, SdkError>

Source§

fn telemetry_query( &self, _query: TelemetryQuery, ) -> Result<Vec<TelemetryPoint>, SdkError>

Source§

fn telemetry_subscribe(&self, _query: TelemetryQuery) -> Result<Ack, SdkError>

Source§

fn attachment_store( &self, _req: AttachmentStoreRequest, ) -> Result<AttachmentMeta, SdkError>

Source§

fn attachment_get( &self, _attachment_id: AttachmentId, ) -> Result<Option<AttachmentMeta>, SdkError>

Source§

fn attachment_list( &self, _req: AttachmentListRequest, ) -> Result<AttachmentListResult, SdkError>

Source§

fn attachment_delete( &self, _attachment_id: AttachmentId, ) -> Result<Ack, SdkError>

Source§

fn attachment_download( &self, _attachment_id: AttachmentId, ) -> Result<Ack, SdkError>

Source§

fn attachment_upload_start( &self, _req: AttachmentUploadStartRequest, ) -> Result<AttachmentUploadSession, SdkError>

Source§

fn attachment_upload_chunk( &self, _req: AttachmentUploadChunkRequest, ) -> Result<AttachmentUploadChunkAck, SdkError>

Source§

fn attachment_upload_commit( &self, _req: AttachmentUploadCommitRequest, ) -> Result<AttachmentMeta, SdkError>

Source§

fn attachment_download_chunk( &self, _req: AttachmentDownloadChunkRequest, ) -> Result<AttachmentDownloadChunk, SdkError>

Source§

fn attachment_associate_topic( &self, _attachment_id: AttachmentId, _topic_id: TopicId, ) -> Result<Ack, SdkError>

Source§

fn marker_create( &self, _req: MarkerCreateRequest, ) -> Result<MarkerRecord, SdkError>

Source§

fn marker_list( &self, _req: MarkerListRequest, ) -> Result<MarkerListResult, SdkError>

Source§

fn marker_update_position( &self, _req: MarkerUpdatePositionRequest, ) -> Result<MarkerRecord, SdkError>

Source§

fn marker_delete(&self, _req: MarkerDeleteRequest) -> Result<Ack, SdkError>

Source§

fn identity_list(&self) -> Result<Vec<IdentityBundle>, SdkError>

Source§

fn identity_announce_now(&self) -> Result<Ack, SdkError>

Source§

fn identity_announce( &self, _req: IdentityAnnounceRequest, ) -> Result<IdentityAnnounceResult, SdkError>

Source§

fn identity_presence_list( &self, _req: PresenceListRequest, ) -> Result<PresenceListResult, SdkError>

Source§

fn identity_activate(&self, _identity: IdentityRef) -> Result<Ack, SdkError>

Source§

fn identity_import( &self, _req: IdentityImportRequest, ) -> Result<IdentityBundle, SdkError>

Source§

fn identity_export( &self, _identity: IdentityRef, ) -> Result<IdentityImportRequest, SdkError>

Source§

fn identity_resolve( &self, _req: IdentityResolveRequest, ) -> Result<Option<IdentityRef>, SdkError>

Source§

fn identity_contact_update( &self, _req: ContactUpdateRequest, ) -> Result<ContactRecord, SdkError>

Source§

fn identity_contact_list( &self, _req: ContactListRequest, ) -> Result<ContactListResult, SdkError>

Source§

fn identity_bootstrap( &self, _req: IdentityBootstrapRequest, ) -> Result<ContactRecord, SdkError>

Source§

fn peer_connect( &self, _req: PeerConnectionRequest, ) -> Result<PeerConnectionResult, SdkError>

Source§

fn peer_disconnect( &self, _req: PeerConnectionRequest, ) -> Result<PeerConnectionResult, SdkError>

Source§

fn peer_reconnect( &self, _req: PeerConnectionRequest, ) -> Result<PeerConnectionResult, SdkError>

Source§

fn paper_encode( &self, _message_id: MessageId, ) -> Result<PaperMessageEnvelope, SdkError>

Source§

fn paper_decode(&self, _envelope: PaperMessageEnvelope) -> Result<Ack, SdkError>

Source§

fn paper_decode_with_metadata( &self, _envelope: PaperMessageEnvelope, ) -> Result<PaperDecodeResult, SdkError>

Source§

fn command_invoke( &self, _req: RemoteCommandRequest, ) -> Result<RemoteCommandResponse, SdkError>

Source§

fn command_reply( &self, _correlation_id: String, _reply: RemoteCommandResponse, ) -> Result<Ack, SdkError>

Source§

fn command_session_get( &self, _correlation_id: String, ) -> Result<Option<RemoteCommandSession>, SdkError>

Source§

fn command_session_list( &self, _req: RemoteCommandSessionListRequest, ) -> Result<RemoteCommandSessionListResult, SdkError>

Source§

fn voice_session_open( &self, _req: VoiceSessionOpenRequest, ) -> Result<VoiceSessionId, SdkError>

Source§

fn voice_session_update( &self, _req: VoiceSessionUpdateRequest, ) -> Result<VoiceSessionState, SdkError>

Source§

fn voice_session_close( &self, _session_id: VoiceSessionId, ) -> Result<Ack, SdkError>

Source§

fn operation_registry(&self) -> Result<OperationRegistry, SdkError>

Source§

fn envelope_execute( &self, _envelope: Envelope, ) -> Result<EnvelopeResponse, SdkError>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more