pub struct Blobs { /* private fields */ }Expand description
A thread-safe registry of active Blob instances indexed by their Zircon pager port key.
Implementations§
Source§impl Blobs
impl Blobs
Sourcepub fn insert(&self, key: u64, blob: Arc<Blob>) -> Option<Arc<Blob>>
pub fn insert(&self, key: u64, blob: Arc<Blob>) -> Option<Arc<Blob>>
Inserts a blob into the registry under key, returning the previous blob if one existed.
Sourcepub fn get(&self, key: u64) -> Option<Arc<Blob>>
pub fn get(&self, key: u64) -> Option<Arc<Blob>>
Retrieves a cloned handle to the blob registered under key, or None if not present.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Blobs
impl !RefUnwindSafe for Blobs
impl Send for Blobs
impl Sync for Blobs
impl Unpin for Blobs
impl UnsafeUnpin for Blobs
impl UnwindSafe for Blobs
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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