pub struct VmbusServerHandle { /* private fields */ }
Expand description
A handle to a vmbus server that is registered as a state unit.
FUTURE: incorporate the state unit handling directly into VmbusServer
.
Implementations§
Source§impl VmbusServerHandle
impl VmbusServerHandle
Sourcepub fn new(
spawner: &impl Spawn,
builder: UnitBuilder<'_>,
server: VmbusServer,
) -> Result<Self, NameInUse>
pub fn new( spawner: &impl Spawn, builder: UnitBuilder<'_>, server: VmbusServer, ) -> Result<Self, NameInUse>
Makes a new handle, registering the server via builder
.
Sourcepub fn control(&self) -> &Arc<VmbusServerControl>
pub fn control(&self) -> &Arc<VmbusServerControl>
Gets the vmbus control interface.
Sourcepub fn unit_handle(&self) -> &UnitHandle
pub fn unit_handle(&self) -> &UnitHandle
Gets the vmbus unit handle.
Sourcepub async fn remove(self) -> VmbusServer
pub async fn remove(self) -> VmbusServer
Removes the server.
Auto Trait Implementations§
impl Freeze for VmbusServerHandle
impl !RefUnwindSafe for VmbusServerHandle
impl Send for VmbusServerHandle
impl Sync for VmbusServerHandle
impl Unpin for VmbusServerHandle
impl !UnwindSafe for VmbusServerHandle
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