pub struct Server { /* private fields */ }
Expand description
A struct modeling the server side of the VMBus control plane.
Implementations§
Source§impl Server
impl Server
Sourcepub fn new(vtl: Vtl, child_connection_id: u32, channel_id_offset: u16) -> Self
pub fn new(vtl: Vtl, child_connection_id: u32, channel_id_offset: u16) -> Self
Creates a new VMBus server.
Sourcepub fn with_notifier<'a, T: Notifier>(
&'a mut self,
notifier: &'a mut T,
) -> ServerWithNotifier<'a, T>
pub fn with_notifier<'a, T: Notifier>( &'a mut self, notifier: &'a mut T, ) -> ServerWithNotifier<'a, T>
Associates a Notifier
with the server.
Sourcepub fn set_compatibility_version(
&mut self,
version: MaxVersionInfo,
delay: bool,
)
pub fn set_compatibility_version( &mut self, version: MaxVersionInfo, delay: bool, )
Indicates the maximum supported version by the real host in an Underhill relay scenario.
pub fn channel_gpadls(&self, offer_id: OfferId) -> Vec<RestoredGpadl>
pub fn get_version(&self) -> Option<VersionInfo>
pub fn get_restore_open_params( &self, offer_id: OfferId, ) -> Result<OpenParams, RestoreError>
Sourcepub fn has_pending_messages(&self) -> bool
pub fn has_pending_messages(&self) -> bool
Check if there are any messages in the pending queue.
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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