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, P>(&self) -> boolwhere
D: OperationDeclaration,
P: 'static,
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§
Source§impl Clone for OperationFactory
impl Clone for OperationFactory
Source§fn clone(&self) -> OperationFactory
fn clone(&self) -> OperationFactory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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