pub enum UninitializedRemote {
Shared(Remote),
Unspawned,
}Expand description
Possibly uninitialized event loop remote.
Variants§
Implementations§
Source§impl UninitializedRemote
impl UninitializedRemote
Sourcepub fn initialize(self) -> Result<Remote>
pub fn initialize(self) -> Result<Remote>
Initializes remote.
In case there is no shared remote, will spawn a new event loop.
Dropping Remote closes the loop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UninitializedRemote
impl !RefUnwindSafe for UninitializedRemote
impl Send for UninitializedRemote
impl Sync for UninitializedRemote
impl Unpin for UninitializedRemote
impl !UnwindSafe for UninitializedRemote
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