pub struct HandleAccess { /* private fields */ }Expand description
Per-handle access restriction (spec §2.2: “each handle may have its own principal and read-only restriction”).
Stage 1A issues read-write handles; the read-only restriction is enforced once per-handle admission lands with Stage 1D sessions.
Implementations§
Source§impl HandleAccess
impl HandleAccess
Sourcepub fn read_write() -> Self
pub fn read_write() -> Self
A read-write handle (the Stage 1A default).
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Whether this handle is restricted to reads.
Trait Implementations§
Source§impl Clone for HandleAccess
impl Clone for HandleAccess
Source§fn clone(&self) -> HandleAccess
fn clone(&self) -> HandleAccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HandleAccess
Source§impl Debug for HandleAccess
impl Debug for HandleAccess
Source§impl Default for HandleAccess
impl Default for HandleAccess
Source§fn default() -> HandleAccess
fn default() -> HandleAccess
Returns the “default value” for a type. Read more
impl Eq for HandleAccess
Source§impl PartialEq for HandleAccess
impl PartialEq for HandleAccess
impl StructuralPartialEq for HandleAccess
Auto Trait Implementations§
impl Freeze for HandleAccess
impl RefUnwindSafe for HandleAccess
impl Send for HandleAccess
impl Sync for HandleAccess
impl Unpin for HandleAccess
impl UnsafeUnpin for HandleAccess
impl UnwindSafe for HandleAccess
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