pub enum FileAsyncOwner {
Unowned,
Thread(Option<Pid>),
Process(Option<Pid>),
ProcessGroup(Option<Pid>),
}Variants§
Implementations§
Source§impl FileAsyncOwner
impl FileAsyncOwner
pub fn new(current_task: &CurrentTask, pid: pid_t) -> Result<Self, Errno>
pub fn new_ex( current_task: &CurrentTask, requested_owner: f_owner_ex, ) -> Result<Self, Errno>
pub fn get_owner(&self) -> pid_t
pub fn get_owner_ex(&self) -> f_owner_ex
Trait Implementations§
Source§impl Clone for FileAsyncOwner
impl Clone for FileAsyncOwner
Source§fn clone(&self) -> FileAsyncOwner
fn clone(&self) -> FileAsyncOwner
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 moreSource§impl Debug for FileAsyncOwner
impl Debug for FileAsyncOwner
Source§impl Default for FileAsyncOwner
impl Default for FileAsyncOwner
Source§fn default() -> FileAsyncOwner
fn default() -> FileAsyncOwner
Returns the “default value” for a type. Read more
impl Eq for FileAsyncOwner
Source§impl PartialEq for FileAsyncOwner
impl PartialEq for FileAsyncOwner
impl StructuralPartialEq for FileAsyncOwner
Auto Trait Implementations§
impl Freeze for FileAsyncOwner
impl RefUnwindSafe for FileAsyncOwner
impl Send for FileAsyncOwner
impl Sync for FileAsyncOwner
impl Unpin for FileAsyncOwner
impl UnsafeUnpin for FileAsyncOwner
impl UnwindSafe for FileAsyncOwner
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, 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§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