pub struct Connect<C>where
C: IpcConnection,{
pub endpoint: String,
pub session_label: Option<String>,
/* private fields */
}Expand description
A command which is used to actively connect to another node like a client.
A new session will be created if the operation is successful. The user can provide a
session_label as an alias to the session, and it can be used to refer to the session actor
in other commands. If session_label is not provided, the endpoint of the connection will be
used as the alias of the new session actor.
The command will return the address of the session actor if it succeeds.
Fields§
§endpoint: String§session_label: Option<String>Implementations§
Trait Implementations§
Source§impl<C> Debug for Connect<C>where
C: IpcConnection,
impl<C> Debug for Connect<C>where
C: IpcConnection,
Auto Trait Implementations§
impl<C> Freeze for Connect<C>
impl<C> RefUnwindSafe for Connect<C>
impl<C> Send for Connect<C>
impl<C> Sync for Connect<C>
impl<C> Unpin for Connect<C>
impl<C> UnsafeUnpin for Connect<C>
impl<C> UnwindSafe for Connect<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more