Crate safe_app[][src]

SAFE App

Re-exports

pub use safe_core::*;
pub use ffi::access_container::*;
pub use ffi::cipher_opt::*;
pub use ffi::crypto::*;
pub use ffi::immutable_data::*;
pub use ffi::ipc::*;
pub use ffi::logging::*;
pub use ffi::mdata_info::*;
pub use ffi::mutable_data::entries::*;
pub use ffi::mutable_data::entry_actions::*;
pub use ffi::mutable_data::metadata::*;
pub use ffi::mutable_data::permissions::*;
pub use ffi::mutable_data::*;
pub use ffi::nfs::*;
pub use ffi::object_cache::*;
pub use ffi::*;

Modules

cipher_opt

Cipher options.

ffi

FFI

object_cache

This module implements storage (cache) for objects that have to be passed across FFI boundaries.

permissions

Permissions utilities

Macros

btree_map
btree_set
err

This is the equivalent of Result::Ok() adapted to deal with futures. This should be used to construct the return type equivalent of Result::Err in futures paradigm.

fry

This is the equivalent try! adapted to deal with futures. It is to be read as future-try. This will convert errors from Result into a done future with corresponding error and return.

ok

This is the equivalent of Result::Ok() adapted to deal with futures. This should be used to construct the return type equivalent of Result::Ok in futures paradigm.

Structs

App

Handle to an application instance.

ImmutableData

An immutable chunk of data.

MutableData

Mutable data.

PermissionSet

Set of user permissions.

Registered
Unregistered
Value

A value in MutableData

XorName

A XOR_NAME_BITS-bit number, viewed as a point in XOR space.

Enums

Action

Action a permission applies to

AppContext

Application context (data associated with the app).

AppError

App error.

ClientError

Errors in operations involving Core and Vaults

EntryAction

Action performed on a single entry: insert, update or delete.

User

Subject of permissions

Constants

ERR_ACCESS_DENIED
ERR_ACCOUNT_EXISTS
ERR_ALREADY_AUTHORISED
ERR_ASYMMETRIC_DECIPHER_FAILURE
ERR_AUTH_DENIED
ERR_CONFIG_FILE
ERR_CONTAINERS_DENIED
ERR_DATA_EXISTS
ERR_DATA_TOO_LARGE
ERR_ENCODE_DECODE_ERROR
ERR_FILE_EXISTS
ERR_FILE_NOT_FOUND
ERR_INVALID_CIPHER_OPT_HANDLE
ERR_INVALID_ENCRYPT_PUB_KEY_HANDLE
ERR_INVALID_ENCRYPT_SEC_KEY_HANDLE
ERR_INVALID_ENTRY_ACTIONS
ERR_INVALID_FILE_CONTEXT_HANDLE
ERR_INVALID_FILE_MODE
ERR_INVALID_INVITATION
ERR_INVALID_MDATA_ENTRIES_HANDLE
ERR_INVALID_MDATA_ENTRY_ACTIONS_HANDLE
ERR_INVALID_MDATA_INFO_HANDLE
ERR_INVALID_MDATA_PERMISSIONS_HANDLE
ERR_INVALID_MDATA_PERMISSION_SET_HANDLE
ERR_INVALID_MSG
ERR_INVALID_OPERATION
ERR_INVALID_OWNER
ERR_INVALID_OWNERS
ERR_INVALID_RANGE
ERR_INVALID_SELF_ENCRYPTOR_HANDLE
ERR_INVALID_SELF_ENCRYPTOR_READ_OFFSETS
ERR_INVALID_SIGN_PUB_KEY_HANDLE
ERR_INVALID_SIGN_SEC_KEY_HANDLE
ERR_INVALID_SUCCESSOR
ERR_INVITATION_ALREADY_CLAIMED
ERR_IO
ERR_IO_ERROR
ERR_LOW_BALANCE
ERR_MPID_MESSAGING_ERROR
ERR_NETWORK_FULL
ERR_NETWORK_OTHER
ERR_NO_SUCH_ACCOUNT
ERR_NO_SUCH_CONTAINER
ERR_NO_SUCH_DATA
ERR_NO_SUCH_ENTRY
ERR_NO_SUCH_KEY
ERR_OPERATION_ABORTED
ERR_OPERATION_FORBIDDEN
ERR_RANDOM_DATA_GENERATION_FAILURE
ERR_RECEIVED_UNEXPECTED_DATA
ERR_RECEIVED_UNEXPECTED_EVENT
ERR_REQUEST_TIMEOUT
ERR_ROOT_DIRECTORY_EXISTS
ERR_ROUTING_ERROR
ERR_ROUTING_INTERFACE_ERROR
ERR_SELF_ENCRYPTION
ERR_SHARE_MDATA_DENIED
ERR_STRING_ERROR
ERR_SYMMETRIC_DECIPHER_FAILURE
ERR_TOO_MANY_ENTRIES
ERR_UNEXPECTED
ERR_UNKNOWN_APP
ERR_UNSUCCESSFUL_PW_HASH
ERR_UNSUPPORTED_SALT_SIZE_FOR_PW_HASH
ERR_VERSION_CACHE_MISS
XOR_NAME_LEN

Constant byte length of XorName.