Trait fidl_fuchsia_fdomain_ext::AsFDomainRights

source ·
pub trait AsFDomainRights {
    // Required methods
    fn as_fdomain_rights(self) -> Option<Rights>;
    fn as_fdomain_rights_truncate(self) -> Rights;
}
Expand description

Means a value is convertible to an FDomain Rights type. This is a type analogous to zx::Rights but which versions differently to insulate FDomain from Zircon changes.

Required Methods§

source

fn as_fdomain_rights(self) -> Option<Rights>

Convert to a fidl_fuchsia_fdomain::Rights.

If this method returns None, the object type was a type of object FDomain doesn’t understand.

source

fn as_fdomain_rights_truncate(self) -> Rights

Convert to a fidl_fuchsia_fdomain::Rights.

If any rights aren’t understood by FDomain, those rights are silently omitted.

Implementations on Foreign Types§

source§

impl AsFDomainRights for Rights

source§

impl AsFDomainRights for Rights

Implementors§