ucontext_t in libc - Rust
Description: API documentation for the Rust `ucontext_t` struct in crate `libc`.
Keywords: rust, rustlang, rust-lang, ucontext_t

# Struct libc::ucontext_t

source ·

    #[repr(C)]pub struct ucontext_t {
        pub uc_flags: c_ulong,
        pub uc_link: *mut ucontext_t,
        pub uc_stack: stack_t,
        pub uc_mcontext: mcontext_t,
        pub uc_sigmask: sigset_t,
        /* private fields */
    }

## Fields§

§`uc_flags: c_ulong`§`uc_link: *mut ucontext_t`§`uc_stack: stack_t`§`uc_mcontext: mcontext_t`§`uc_sigmask: sigset_t`

## Trait Implementations§

source§

### impl Clone for ucontext_t

source§

#### fn clone(&self) -> ucontext_t

Returns a copy of the value. Read more
1.0.0 · source§

#### fn clone_from(&mut self, source: &Self)

Performs copy-assignment from `source`. Read more
source§

### impl Copy for ucontext_t

## Auto Trait Implementations§

§

### impl RefUnwindSafe for ucontext_t

§

### impl !Send for ucontext_t

§

### impl !Sync for ucontext_t

§

### impl Unpin for ucontext_t

§

### impl UnwindSafe for ucontext_t

## Blanket Implementations§

source§

### impl<T> Any for Twhere
T: 'static + ?Sized,

source§

#### fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more
source§

### impl<T> Borrow<T> for Twhere
T: ?Sized,

const: unstable · source§

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

### impl<T> BorrowMut<T> for Twhere
T: ?Sized,

const: unstable · source§

#### fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

### impl<T> From<T> for T

const: unstable · source§

#### fn from(t: T) -> T

Returns the argument unchanged.

source§

### impl<T, U> Into<U> for Twhere
U: From<T>,

const: unstable · source§

#### fn into(self) -> U

Calls `U::from(self)`.

That is, this conversion is whatever the implementation of `From<T> for U` chooses to do.

source§

### impl<T, U> TryFrom<U> for Twhere
U: Into<T>,

§

#### type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

### impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,

§

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.