Skip to main content

WireTable

Struct WireTable 

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

Implementations§

Source§

impl WireTable

Source

pub fn install_lifecycle<D, T>( &mut self, dependencies: Dependencies, descriptor: Descriptor, ) -> Result<(), ServingError>
where D: OperationDeclaration, T: Carrier<Declaration = D, StreamEndpoints = ()>,

Source§

impl WireTable

Source

pub fn new(owner: &str) -> Result<Self, ServingError>

Source

pub fn provide(&mut self, resource: TypeId)

Source

pub fn provided(&self) -> &[TypeId]

Source

pub fn capacity(&mut self, capacity: NonZeroUsize)

Source

pub fn register(&mut self, batch: RegistrationBatch) -> Result<(), ServingError>

Source

pub async fn unregister(&mut self, id: &QualifiedId) -> Result<(), ServingError>

Source

pub fn definitions(&self) -> Vec<OperationDefinition>

Source

pub fn validate( &self, definitions: &[OperationDefinition], ) -> Result<(), ServingError>

Source

pub fn validate_callees(&self, assignments: &[u8]) -> Result<(), ServingError>

Source

pub fn validate_contracts( &self, contracts: &[Contract], ) -> Result<(), ServingError>

Source

pub fn prepare( &mut self, invocation: u64, operation: &str, fingerprint: [u8; 32], generation: u64, payload: Vec<u8>, ) -> Result<Vec<u8>, ServingError>

Source

pub async fn bind( &mut self, invocation: u64, context: &ExecutionContext, ) -> Result<(), ServingError>

Source

pub async fn attempt( &mut self, invocation: u64, context: &ExecutionContext, ) -> Result<Vec<u8>, ServingError>

Source

pub async fn finalize(&mut self, invocation: u64) -> Result<(), ServingError>

Source

pub fn begin( &mut self, command: WireCommand, context: Arc<ExecutionContext>, ) -> Pin<Box<dyn Future<Output = WireAnswer> + Send + 'static>>

Source

pub fn close_ordinary( &mut self, ) -> Pin<Box<dyn Future<Output = Result<(), ServingError>> + Send + 'static>>

Source

pub fn release_ordinary(&mut self) -> Result<impl Send + use<>, ServingError>

Source

pub async fn settle_ordinary(&mut self) -> Result<(), ServingError>

Source

pub fn close( &mut self, ) -> Pin<Box<dyn Future<Output = Result<(), ServingError>> + Send + 'static>>

Source

pub fn release(&mut self) -> Result<impl Send + use<>, ServingError>

Source

pub async fn settle(&mut self) -> Result<(), ServingError>

Source

pub fn is_settled(&self) -> bool

Source

pub fn is_closed(&self) -> bool

Source

pub async fn answer( &mut self, command: WireCommand, context: &ExecutionContext, ) -> WireAnswer

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<C, T> Catalogued<C> for T
where T: Into<C>,

Source§

fn catalogued(self) -> C

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> Mutual<T> for T

Source§

impl<R> RecordProjection<R> for R

Source§

fn project(&self) -> Option<&R>

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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