pub struct CapTable { /* private fields */ }
Implementations§
Source§impl CapTable
impl CapTable
pub fn new() -> Self
pub fn insert(&self, id: CapId, target: Arc<dyn RpcTarget>)
pub fn lookup(&self, id: &CapId) -> Option<Arc<dyn RpcTarget>>
pub fn remove(&self, id: &CapId) -> Option<Arc<dyn RpcTarget>>
pub fn clear(&self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CapTable
impl !RefUnwindSafe for CapTable
impl Send for CapTable
impl Sync for CapTable
impl Unpin for CapTable
impl !UnwindSafe for CapTable
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