[][src]Enum sequoia_core::IPCPolicy

pub enum IPCPolicy {
    External,
    Internal,
    Robust,
}

IPC policy for Sequoia.

With this policy you can control how Sequoia starts background servers.

Variants

External

External background servers only.

We will always use external background servers. If starting one fails, the operation will fail.

The advantage is that we never spawn a thread.

The disadvantage is that we need to locate the background server to start. If you are distribute Sequoia with your application, make sure to include the binaries, and to configure the Context so that context.lib() points to the directory containing the binaries.

Internal

Internal background servers only.

We will always use internal background servers. It is very unlikely that this fails.

The advantage is that this method is very robust. If you distribute Sequoia with your application, you do not need to ship the binary, and it does not matter what context.lib() points to. This is very robust and convenient.

The disadvantage is that we spawn a thread in your application. Threads may play badly with fork(2), file handles, and locks. If you are not doing anything fancy, however, and only use fork-then-exec, you should be okay.

Robust

Prefer external, fall back to internal.

We will first try to use an external background server, but fall back on an internal one should that fail.

The advantage is that if Sequoia is properly set up to find the background servers, we will use these and get the advantages of that approach. Because we fail back on using an internal server, we gain the robustness of that approach.

The disadvantage is that we may or may not spawn a thread in your application. If this is unacceptable in your environment, use the External policy.

Trait Implementations

impl Clone for IPCPolicy[src]

impl Copy for IPCPolicy[src]

impl Debug for IPCPolicy[src]

impl<'a> From<&'a IPCPolicy> for u8[src]

impl From<u8> for IPCPolicy[src]

impl PartialEq<IPCPolicy> for IPCPolicy[src]

impl StructuralPartialEq for IPCPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,