pub struct Bootstrapper { /* private fields */ }
Expand description
A bootstrap helper.
This creates a unix socket that is linked to the file system so
that a Receiver
can connect to it. It
lets you send one or more messages to the connected receiver.
The bootstrapper lets you send both to raw and typed receivers
on the other side. To send to a raw one use the
send_raw
method.
Implementations§
Source§impl Bootstrapper
impl Bootstrapper
Sourcepub fn new() -> Result<Bootstrapper>
pub fn new() -> Result<Bootstrapper>
Creates a bootstrapper at a random socket in /tmp
.
Sourcepub fn bind<P: AsRef<Path>>(p: P) -> Result<Bootstrapper>
pub fn bind<P: AsRef<Path>>(p: P) -> Result<Bootstrapper>
Creates a bootstrapper at a specific socket path.
Trait Implementations§
Source§impl Debug for Bootstrapper
impl Debug for Bootstrapper
Auto Trait Implementations§
impl !Freeze for Bootstrapper
impl !RefUnwindSafe for Bootstrapper
impl Send for Bootstrapper
impl Sync for Bootstrapper
impl Unpin for Bootstrapper
impl !UnwindSafe for Bootstrapper
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