Module sgx_tstd::ffi[][src]

Utilities related to FFI bindings.

This module provides utilities to handle data across non-Rust interfaces, like other programming languages and the underlying operating system. It is mainly of use for FFI (Foreign Function Interface) bindings and code that needs to exchange C-like strings with other languages.

Structs

CStr

Representation of a borrowed C string.

CString

A type representing an owned C-compatible string

FromBytesWithNulError

An error returned from CStr::from_bytes_with_nul to indicate that a nul byte was found too early in the slice provided or one wasn't found at all.

IntoStringError

An error returned from CString::into_string to indicate that a UTF-8 error was encountered during the conversion.

NulError

An error returned from CString::new to indicate that a nul byte was found in the vector provided.

OsStr

Slices into OS strings (see OsString).

OsString

A type that can represent owned, mutable platform-native strings, but is cheaply inter-convertible with Rust strings.