pub struct AdapterRoleRequirement { /* private fields */ }Expand description
Exact symbolic role required by an adapter.
Implementations§
Source§impl AdapterRoleRequirement
impl AdapterRoleRequirement
Sourcepub fn new(
name: InstallationSymbol,
role_hash: ApplicationRoleHash,
operations: Vec<RoleOperation>,
) -> Result<Self, AdapterConformanceError>
pub fn new( name: InstallationSymbol, role_hash: ApplicationRoleHash, operations: Vec<RoleOperation>, ) -> Result<Self, AdapterConformanceError>
Creates one exact, nonempty, name-only role surface.
Sourcepub const fn name(&self) -> &InstallationSymbol
pub const fn name(&self) -> &InstallationSymbol
Symbolic role name.
Sourcepub const fn role_hash(&self) -> ApplicationRoleHash
pub const fn role_hash(&self) -> ApplicationRoleHash
Exact compiled role identity.
Sourcepub fn operations(&self) -> &[RoleOperation]
pub fn operations(&self) -> &[RoleOperation]
Closed named application operations.
Trait Implementations§
Source§impl Clone for AdapterRoleRequirement
impl Clone for AdapterRoleRequirement
Source§impl Debug for AdapterRoleRequirement
impl Debug for AdapterRoleRequirement
impl Eq for AdapterRoleRequirement
Source§impl Ord for AdapterRoleRequirement
impl Ord for AdapterRoleRequirement
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AdapterRoleRequirement
impl PartialEq for AdapterRoleRequirement
Source§impl PartialOrd for AdapterRoleRequirement
impl PartialOrd for AdapterRoleRequirement
impl StructuralPartialEq for AdapterRoleRequirement
Auto Trait Implementations§
impl Freeze for AdapterRoleRequirement
impl RefUnwindSafe for AdapterRoleRequirement
impl Send for AdapterRoleRequirement
impl Sync for AdapterRoleRequirement
impl Unpin for AdapterRoleRequirement
impl UnsafeUnpin for AdapterRoleRequirement
impl UnwindSafe for AdapterRoleRequirement
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