pub struct OpenedNode<N: FxNode + ?Sized>(pub Arc<N>);Tuple Fields§
§0: Arc<N>Implementations§
Source§impl OpenedNode<FxBlob>
impl OpenedNode<FxBlob>
Sourcepub fn create_child_vmo(&self) -> Result<Vmo, Status>
pub fn create_child_vmo(&self) -> Result<Vmo, Status>
Creates a read-only child VMO for this blob backed by the pager. The blob cannot be purged until all child VMOs have been destroyed.
WARNING: We need to ensure the open count is non-zero before invoking this function, so
it is only implemented for OpenedNode<FxBlob>. This prevents the blob from being purged
before we get a chance to register it with the pager for zx::Signals::VMO_ZERO_CHILDREN.
Source§impl<N: FxNode + ?Sized> OpenedNode<N>
impl<N: FxNode + ?Sized> OpenedNode<N>
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for OpenedNode<N>where
N: ?Sized,
impl<N> RefUnwindSafe for OpenedNode<N>where
N: RefUnwindSafe + ?Sized,
impl<N> Send for OpenedNode<N>where
N: ?Sized,
impl<N> Sync for OpenedNode<N>where
N: ?Sized,
impl<N> Unpin for OpenedNode<N>where
N: ?Sized,
impl<N> UnsafeUnpin for OpenedNode<N>where
N: ?Sized,
impl<N> UnwindSafe for OpenedNode<N>where
N: RefUnwindSafe + ?Sized,
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]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