pub struct RegionSetLayout { /* private fields */ }Expand description
Checked layouts for caller-configured independent directional regions.
Implementations§
Source§impl RegionSetLayout
impl RegionSetLayout
Sourcepub fn calculate(
schema_id: [u8; 32],
generation: u64,
specs: &[RegionSpec],
route_specs: &[AcknowledgementRouteSpec],
limits: LayoutLimits,
) -> Result<Self, LayoutError>
pub fn calculate( schema_id: [u8; 32], generation: u64, specs: &[RegionSpec], route_specs: &[AcknowledgementRouteSpec], limits: LayoutLimits, ) -> Result<Self, LayoutError>
Calculates layouts and rejects empty or duplicate role sets.
Sourcepub fn regions(&self) -> &[RegionLayout]
pub fn regions(&self) -> &[RegionLayout]
Returns all independent layouts.
Sourcepub fn region(&self, role: RoleId) -> Option<&RegionLayout>
pub fn region(&self, role: RoleId) -> Option<&RegionLayout>
Finds a layout by validated numeric role.
Sourcepub fn acknowledgement_route(
&self,
target: RoleId,
slot_index: u32,
) -> Option<AcknowledgementRoute>
pub fn acknowledgement_route( &self, target: RoleId, slot_index: u32, ) -> Option<AcknowledgementRoute>
Returns the validated route for one producer slot.
Sourcepub fn acknowledgement_routes(&self) -> &[AcknowledgementRoute]
pub fn acknowledgement_routes(&self) -> &[AcknowledgementRoute]
Returns all exact acknowledgement routes.
Trait Implementations§
Source§impl Clone for RegionSetLayout
impl Clone for RegionSetLayout
Source§fn clone(&self) -> RegionSetLayout
fn clone(&self) -> RegionSetLayout
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 RegionSetLayout
impl RefUnwindSafe for RegionSetLayout
impl Send for RegionSetLayout
impl Sync for RegionSetLayout
impl Unpin for RegionSetLayout
impl UnsafeUnpin for RegionSetLayout
impl UnwindSafe for RegionSetLayout
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