pub struct OperationBuilder<Op: UPnPOperation> { /* private fields */ }Expand description
Builder for constructing UPnP operations with configuration
The OperationBuilder allows for fluent construction of operations with validation levels, timeouts, and other configuration.
§Type Parameters
Op- The UPnP operation type being built
Implementations§
Source§impl<Op: UPnPOperation> OperationBuilder<Op>
impl<Op: UPnPOperation> OperationBuilder<Op>
Sourcepub fn with_validation(self, level: ValidationLevel) -> Self
pub fn with_validation(self, level: ValidationLevel) -> Self
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sourcepub fn build(self) -> Result<ComposableOperation<Op>, ValidationError>
pub fn build(self) -> Result<ComposableOperation<Op>, ValidationError>
Build the final composable operation
This validates the request according to the configured validation level and creates a ComposableOperation ready for execution.
§Returns
A ComposableOperation or a validation error
Sourcepub fn build_unchecked(self) -> ComposableOperation<Op>
pub fn build_unchecked(self) -> ComposableOperation<Op>
Build without validation (for performance-critical scenarios)
This bypasses validation and creates the operation directly. Use with caution - invalid requests may cause runtime errors.
§Returns
A ComposableOperation without validation
Sourcepub fn validation_level(&self) -> ValidationLevel
pub fn validation_level(&self) -> ValidationLevel
Get the current validation level
Auto Trait Implementations§
impl<Op> Freeze for OperationBuilder<Op>
impl<Op> RefUnwindSafe for OperationBuilder<Op>
impl<Op> Send for OperationBuilder<Op>
impl<Op> Sync for OperationBuilder<Op>
impl<Op> Unpin for OperationBuilder<Op>
impl<Op> UnsafeUnpin for OperationBuilder<Op>
impl<Op> UnwindSafe for OperationBuilder<Op>
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