Struct sequoia_ipc::Descriptor [−][src]
A descriptor is used to connect to a service.
Implementations
impl Descriptor
[src]
pub fn new(
ctx: &Context,
rendezvous: PathBuf,
executable: PathBuf,
factory: HandlerFactory
) -> Self
[src]
ctx: &Context,
rendezvous: PathBuf,
executable: PathBuf,
factory: HandlerFactory
) -> Self
Create a descriptor given its rendezvous point, the path to the servers executable file, and a handler factory.
pub fn context(&self) -> &Context
[src]
Returns the context.
pub fn connect(&self) -> Result<RpcSystem<Side>>
[src]
Connects to a descriptor, starting the server if necessary.
Panic
This will panic if called outside of the Tokio runtime context. See
See Handle::enter
for more details.
pub fn connect_with_policy(&self, policy: IPCPolicy) -> Result<RpcSystem<Side>>
[src]
Connects to a descriptor, starting the server if necessary.
This function does not use the context’s IPC policy, but uses the given one.
Panic
This will panic if called outside of the Tokio runtime context. See
See Handle::enter
for more details.
Trait Implementations
impl Clone for Descriptor
[src]
fn clone(&self) -> Descriptor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,