pub struct Service { /* private fields */ }Implementations§
Source§impl Service
impl Service
pub fn new(uri: impl AsRef<URI>) -> Self
pub fn uri(&self) -> &URI
pub fn capability(&self) -> &str
pub fn set_capability(&mut self, capability: impl Into<String>)
pub fn add_capability(&mut self, capability: &str) -> Result<()>
pub fn key_references(&self) -> &HashSet<Reference>
pub fn key_referenecs_mut(&mut self) -> &mut HashSet<Reference>
pub fn add_key_reference( &mut self, key_reference: impl AsRef<Reference>, ) -> Result<()>
pub fn add_key(&mut self, key: &dyn PublicKeysProvider) -> Result<()>
pub fn delegate_references(&self) -> &HashSet<Reference>
pub fn delegate_references_mut(&mut self) -> &mut HashSet<Reference>
pub fn add_delegate_reference( &mut self, delegate_reference: impl AsRef<Reference>, ) -> Result<()>
pub fn add_delegate(&mut self, delegate: &dyn XIDProvider) -> Result<()>
pub fn name(&self) -> &str
pub fn set_name(&mut self, name: impl Into<String>) -> Result<()>
Trait Implementations§
Source§impl EnvelopeEncodable for Service
impl EnvelopeEncodable for Service
Source§impl HasPermissions for Service
impl HasPermissions for Service
fn permissions(&self) -> &Permissions
fn permissions_mut(&mut self) -> &mut Permissions
fn allow(&self) -> &HashSet<Privilege>
fn deny(&self) -> &HashSet<Privilege>
fn allow_mut(&mut self) -> &mut HashSet<Privilege>
fn deny_mut(&mut self) -> &mut HashSet<Privilege>
fn add_allow(&mut self, privilege: Privilege)
fn add_deny(&mut self, privilege: Privilege)
fn remove_allow(&mut self, privilege: &Privilege)
fn remove_deny(&mut self, privilege: &Privilege)
fn clear_all_permissions(&mut self)
impl Eq for Service
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more