pub struct Notify(/* private fields */);
Expand description
An object that can be signaled when the guest needs attention.
Implementations§
Source§impl Notify
impl Notify
Sourcepub fn from_event(event: Event) -> Self
pub fn from_event(event: Event) -> Self
Creates an object from an event.
Sourcepub fn from_slim_event(event: Arc<SlimEvent>) -> Self
pub fn from_slim_event(event: Arc<SlimEvent>) -> Self
Creates an object from a slim event.
Sourcepub fn pollable(self, driver: &(impl Driver + ?Sized)) -> Result<PolledNotify>
pub fn pollable(self, driver: &(impl Driver + ?Sized)) -> Result<PolledNotify>
Returns a pollable version, using driver
to poll an underlying event
if there is one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notify
impl !RefUnwindSafe for Notify
impl Send for Notify
impl Sync for Notify
impl Unpin for Notify
impl !UnwindSafe for Notify
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size
].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message
].