pub struct ServiceChain { /* private fields */ }
Expand description
A chain of service nodes
Represents an ordered sequence of service nodes that form a processing chain. The order of nodes in the chain is significant - it defines the expected order of processing and attestation.
Implementations§
Source§impl ServiceChain
impl ServiceChain
Sourcepub fn with_nodes(nodes: Vec<ServiceNode>) -> Self
pub fn with_nodes(nodes: Vec<ServiceNode>) -> Self
Create a service chain with the given nodes
Sourcepub fn builder() -> ServiceChainBuilder
pub fn builder() -> ServiceChainBuilder
Create a new service chain builder
Sourcepub fn add_node(&mut self, node: ServiceNode) -> &mut Self
pub fn add_node(&mut self, node: ServiceNode) -> &mut Self
Add a node to the chain
Sourcepub fn with_node(self, node: ServiceNode) -> Self
pub fn with_node(self, node: ServiceNode) -> Self
Add a node to the chain (builder style)
Sourcepub fn nodes(&self) -> &[ServiceNode]
pub fn nodes(&self) -> &[ServiceNode]
Get the nodes in the chain
Trait Implementations§
Source§impl Clone for ServiceChain
impl Clone for ServiceChain
Source§fn clone(&self) -> ServiceChain
fn clone(&self) -> ServiceChain
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServiceChain
impl Debug for ServiceChain
Source§impl Default for ServiceChain
impl Default for ServiceChain
Source§fn default() -> ServiceChain
fn default() -> ServiceChain
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceChain
impl RefUnwindSafe for ServiceChain
impl Send for ServiceChain
impl Sync for ServiceChain
impl Unpin for ServiceChain
impl UnwindSafe for ServiceChain
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