pub struct RamdiskControllerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl RamdiskControllerSynchronousProxy
impl RamdiskControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RamdiskControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RamdiskControllerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn create(
&self,
block_size: u64,
block_count: u64,
type_guid: Option<&Guid>,
___deadline: MonotonicInstant,
) -> Result<RamdiskControllerCreateResult, Error>
pub fn create( &self, block_size: u64, block_count: u64, type_guid: Option<&Guid>, ___deadline: MonotonicInstant, ) -> Result<RamdiskControllerCreateResult, Error>
Initializes a new Ramdisk instance with the provided block size and block count.
Takes an optional type_guid
, which may be queried from the ramdisk instance.
Sourcepub fn create_from_vmo(
&self,
vmo: Vmo,
___deadline: MonotonicInstant,
) -> Result<RamdiskControllerCreateFromVmoResult, Error>
pub fn create_from_vmo( &self, vmo: Vmo, ___deadline: MonotonicInstant, ) -> Result<RamdiskControllerCreateFromVmoResult, Error>
Initializes a new Ramdisk instance from a VMO. Uses a block size of PAGE_SIZE
,
and derives the block count from the size of the VMO.
Sourcepub fn create_from_vmo_with_params(
&self,
vmo: Vmo,
block_size: u64,
type_guid: Option<&Guid>,
___deadline: MonotonicInstant,
) -> Result<RamdiskControllerCreateFromVmoWithParamsResult, Error>
pub fn create_from_vmo_with_params( &self, vmo: Vmo, block_size: u64, type_guid: Option<&Guid>, ___deadline: MonotonicInstant, ) -> Result<RamdiskControllerCreateFromVmoWithParamsResult, Error>
Same as CreateFromVmo, but with the given block_size
and optional type_guid
. If
block_size
is zero, PAGE_SIZE
will be used as block_size
.
Trait Implementations§
Source§impl SynchronousProxy for RamdiskControllerSynchronousProxy
impl SynchronousProxy for RamdiskControllerSynchronousProxy
Source§type Proxy = RamdiskControllerProxy
type Proxy = RamdiskControllerProxy
The async proxy for the same protocol.
Source§type Protocol = RamdiskControllerMarker
type Protocol = RamdiskControllerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for RamdiskControllerSynchronousProxy
impl RefUnwindSafe for RamdiskControllerSynchronousProxy
impl Send for RamdiskControllerSynchronousProxy
impl Sync for RamdiskControllerSynchronousProxy
impl Unpin for RamdiskControllerSynchronousProxy
impl UnwindSafe for RamdiskControllerSynchronousProxy
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