class Role
Defined at line 52 of file ../../src/zircon/bin/role_manager/src/config.h
Public Methods
void Role ()
Enforce move semantics.
Defined at line 55 of file ../../src/zircon/bin/role_manager/src/config.h
void Role (Role && other)
Defined at line 56 of file ../../src/zircon/bin/role_manager/src/config.h
Role & operator= (Role && other)
Defined at line 57 of file ../../src/zircon/bin/role_manager/src/config.h
void Role (const Role & )
Defined at line 58 of file ../../src/zircon/bin/role_manager/src/config.h
Role & operator= (const Role & )
Defined at line 59 of file ../../src/zircon/bin/role_manager/src/config.h
bool IsTestRole ()
TODO(https://fxbug.dev/321037780): Remove IsTestRole once the ProfileProvider has been
deprecated, as the RoleManager has its own integration tests that do not rely on a hardcoded
test role.
Defined at line 74 of file ../../src/zircon/bin/role_manager/src/config.h
std::string name ()
Defined at line 76 of file ../../src/zircon/bin/role_manager/src/config.h
fit::result<zx_status_t, Role> Create (std::string_view name, std::vector<fuchsia_scheduler::Parameter> selectors)
Attempt to create a role with the given name and selectors.
`Role`s should always be created with one of these functions, and should never be directly
constructed.
Defined at line 641 of file ../../src/zircon/bin/role_manager/src/config.cc
fit::result<zx_status_t, Role> Create (std::string_view name_with_selectors, bool ignore_selectors)
TODO(https://fxbug.dev/321037780): Remove ignore_selectors once the MediaProfileProvider (and
associated hacks in ProfileProvider) have been deprecated.
Defined at line 681 of file ../../src/zircon/bin/role_manager/src/config.cc
bool HasSelector (std::string selector)
Defined at line 717 of file ../../src/zircon/bin/role_manager/src/config.cc
fit::result<fit::failed, MediaRole> ToMediaRole ()
Defined at line 722 of file ../../src/zircon/bin/role_manager/src/config.cc
bool operator== (const Role & other)
Defined at line 751 of file ../../src/zircon/bin/role_manager/src/config.cc
Friends
class RoleHash