pub struct DriveAccess { /* private fields */ }Implementations§
Source§impl DriveAccess
impl DriveAccess
pub fn actor_key(&self, actor_id: &ActorId) -> Option<VerifyingKey>
pub fn actor_settings(&self, actor_id: ActorId) -> Option<KeyAccessSettings>
pub fn init_private( rng: &mut impl CryptoRngCore, current_actor_id: ActorId, ) -> Self
pub fn permission_keys(&self) -> Option<&PermissionKeys>
pub fn parse<'a>( input: &'a [u8], key_count: u8, signing_key: &SigningKey, ) -> ParserResult<'a, Self>
pub async fn encode<W: AsyncWrite + Unpin + Send>( &self, rng: &mut impl CryptoRngCore, writer: &mut W, ) -> Result<usize>
pub fn has_read_access(&self, actor_id: ActorId) -> bool
pub fn has_write_access(&self, actor_id: ActorId) -> bool
pub fn new(current_actor_id: ActorId) -> Self
pub fn register_actor(&mut self, key: VerifyingKey, settings: KeyAccessSettings)
pub fn sorted_actor_settings(&self) -> Vec<&ActorSettings>
pub const fn size() -> usize
Trait Implementations§
Source§impl Clone for DriveAccess
impl Clone for DriveAccess
Source§fn clone(&self) -> DriveAccess
fn clone(&self) -> DriveAccess
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DriveAccess
impl !RefUnwindSafe for DriveAccess
impl Send for DriveAccess
impl Sync for DriveAccess
impl Unpin for DriveAccess
impl !UnwindSafe for DriveAccess
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