pub struct WireTable<C> { /* private fields */ }Implementations§
Source§impl<C> WireTable<C>
impl<C> WireTable<C>
pub fn bind_operation<T>( &mut self, resources: Arc<<T as Operation>::Resources>, ) -> Result<(), ServingError>
pub fn bind_resident_operation<T>( &mut self, resources: Arc<<T as Operation>::Resources>, ) -> Result<(), ServingError>
pub fn bind_observe_control<T>( &mut self, resources: Arc<<T as Operation>::Resources>, ) -> Result<(), ServingError>
pub fn bind_streaming_operation<T>( &mut self, resources: Arc<<T as Operation>::Resources>, limits: WireStreamLimits, ) -> Result<(), ServingError>
Source§impl<C> WireTable<C>
impl<C> WireTable<C>
pub fn new(capacity: NonZero<usize>) -> WireTable<C>
pub fn of<T, R>( resources: Arc<R>, capacity: NonZero<usize>, ) -> Result<WireTable<C>, ServingError>
pub fn bind_operations<T, R>( &mut self, resources: Arc<R>, ) -> Result<(), ServingError>
pub fn bind_streaming_operations<T, R>( &mut self, resources: Arc<R>, limits: WireStreamLimits, ) -> Result<(), ServingError>
pub fn definitions(&self) -> Vec<Definition>
pub fn validate(&self, definitions: &[Definition]) -> Result<(), ServingError>
pub fn validate_contracts( &self, contracts: &[Contract], ) -> Result<(), ServingError>
pub fn prepare( &mut self, invocation: u64, operation: &str, payload: Vec<u8>, ) -> Result<Vec<u8>, ServingError>
pub fn streams(&self, invocation: u64) -> Result<WireStreams, ServingError>
pub async fn initialize( &mut self, invocation: u64, context: &C, ) -> Result<(), ServingError>
pub async fn attempt( &mut self, invocation: u64, context: &C, ) -> Result<Vec<u8>, ServingError>
pub async fn finalize(&mut self, invocation: u64) -> Result<(), ServingError>
pub fn begin( &mut self, command: WireCommand, context: Arc<C>, ) -> Pin<Box<dyn Future<Output = WireAnswer> + Send>>
pub fn close_ordinary( &mut self, ) -> Pin<Box<dyn Future<Output = Result<(), ServingError>> + Send>>
pub fn release_ordinary(&mut self) -> Result<impl Send + use<C>, ServingError>
pub async fn settle_ordinary(&mut self) -> Result<(), ServingError>
pub fn close( &mut self, ) -> Pin<Box<dyn Future<Output = Result<(), ServingError>> + Send>>
pub fn release(&mut self) -> Result<impl Send + use<C>, ServingError>
pub async fn settle(&mut self) -> Result<(), ServingError>
pub fn is_settled(&self) -> bool
pub fn is_closed(&self) -> bool
pub async fn answer(&mut self, command: WireCommand, context: &C) -> WireAnswer
Auto Trait Implementations§
impl<C> !RefUnwindSafe for WireTable<C>
impl<C> !UnwindSafe for WireTable<C>
impl<C> Freeze for WireTable<C>
impl<C> Send for WireTable<C>
impl<C> Sync for WireTable<C>
impl<C> Unpin for WireTable<C>
impl<C> UnsafeUnpin for WireTable<C>
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