pub struct OperationFactory {
pub definition: OperationDefinition,
pub operations: &'static [WireDeclaration],
/* private fields */
}Fields§
§definition: OperationDefinition§operations: &'static [WireDeclaration]Implementations§
Source§impl OperationFactory
impl OperationFactory
pub fn accepts_target(&self, target: &Target) -> bool
pub fn accepts_native<D: OperationDeclaration, P: 'static>(&self) -> bool
pub fn verify_resources( &self, resources: &ResourceSet, provided: &[TypeId], ) -> Result<(), ServingError>
pub fn validate(&self) -> Result<(), ServingError>
pub fn decoding_memory(&self, payload: &[u8]) -> Result<usize, MessageError>
pub fn prepare_encoded( &self, resources: ResourceSet, payload: &[u8], ) -> Result<PreparedNative, ServingError>
pub fn prepare_native( &self, resources: ResourceSet, request: Box<dyn Any + Send>, endpoints: Box<dyn Any + Send>, ) -> Result<Box<dyn NativeInstance>, ServingError>
pub fn contract(&self) -> Result<Contract, ContractError>
pub fn contract_with_settings( &self, settings: &SchemaSettings, ) -> Result<Contract, ContractError>
pub fn install(self, table: &mut WireTable) -> Result<(), ServingError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperationFactory
impl RefUnwindSafe for OperationFactory
impl Send for OperationFactory
impl Sync for OperationFactory
impl Unpin for OperationFactory
impl UnsafeUnpin for OperationFactory
impl UnwindSafe for OperationFactory
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