Skip to main content

RoleAssignmentObject

Trait RoleAssignmentObject 

Source
pub trait RoleAssignmentObject {
    // Required method
    fn self_id(&self) -> (&NodeId, Option<AttachedModuleId>);

    // Provided methods
    fn set_owner_role<Y: SystemApi<E>, E: SystemApiError, A: Into<AccessRule>>(
        &self,
        rule: A,
        api: &mut Y,
    ) -> Result<(), E> { ... }
    fn lock_owner_role<Y: SystemApi<E>, E: SystemApiError>(
        &self,
        api: &mut Y,
    ) -> Result<(), E> { ... }
    fn set_role<Y: SystemApi<E>, E: SystemApiError, R: Into<RoleKey>, A: Into<AccessRule>>(
        &self,
        module: ModuleId,
        role_key: R,
        rule: A,
        api: &mut Y,
    ) -> Result<(), E> { ... }
    fn get_role<Y: SystemApi<E>, E: SystemApiError, R: Into<RoleKey>>(
        &self,
        module: ModuleId,
        role_key: R,
        api: &mut Y,
    ) -> Result<RoleAssignmentGetOutput, E> { ... }
    fn get_owner_role<Y: SystemApi<E>, E: SystemApiError, R: Into<RoleKey>>(
        &self,
        api: &mut Y,
    ) -> Result<RoleAssignmentGetOwnerRoleOutput, E> { ... }
}

Required Methods§

Provided Methods§

Source

fn set_owner_role<Y: SystemApi<E>, E: SystemApiError, A: Into<AccessRule>>( &self, rule: A, api: &mut Y, ) -> Result<(), E>

Source

fn lock_owner_role<Y: SystemApi<E>, E: SystemApiError>( &self, api: &mut Y, ) -> Result<(), E>

Source

fn set_role<Y: SystemApi<E>, E: SystemApiError, R: Into<RoleKey>, A: Into<AccessRule>>( &self, module: ModuleId, role_key: R, rule: A, api: &mut Y, ) -> Result<(), E>

Source

fn get_role<Y: SystemApi<E>, E: SystemApiError, R: Into<RoleKey>>( &self, module: ModuleId, role_key: R, api: &mut Y, ) -> Result<RoleAssignmentGetOutput, E>

Source

fn get_owner_role<Y: SystemApi<E>, E: SystemApiError, R: Into<RoleKey>>( &self, api: &mut Y, ) -> Result<RoleAssignmentGetOwnerRoleOutput, E>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§