[][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<'a> From<&'a IPCPolicy> for u8[src]

impl From<u8> for IPCPolicy[src]

impl Copy for IPCPolicy[src]

impl PartialEq<IPCPolicy> for IPCPolicy[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for IPCPolicy[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for IPCPolicy[src]

Auto Trait Implementations

impl Send for IPCPolicy

impl Sync for IPCPolicy

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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 for T where
    V: MultiLane<T>,