pub struct NetworkRunner { /* private fields */ }
Expand description
A foundationDB network event loop runner
Most of the time you should never need to use this directly and use boot()
.
Implementations§
Source§impl NetworkRunner
impl NetworkRunner
Sourcepub unsafe fn run(self) -> FdbResult<()>
pub unsafe fn run(self) -> FdbResult<()>
Start the foundationDB network event loop in the current thread.
§Safety
This method is unsafe because you MUST call the stop
method on the
associated NetworkStop
before the program exit.
This will only returns once the stop
method on the associated NetworkStop
object is called or if the foundationDB event loop return an error.
Auto Trait Implementations§
impl Freeze for NetworkRunner
impl RefUnwindSafe for NetworkRunner
impl Send for NetworkRunner
impl Sync for NetworkRunner
impl Unpin for NetworkRunner
impl UnwindSafe for NetworkRunner
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