pub struct OffsetMapProxy { /* private fields */ }
Implementations§
Source§impl OffsetMapProxy
impl OffsetMapProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.hardware.block/OffsetMap.
Sourcepub fn take_event_stream(&self) -> OffsetMapEventStream
pub fn take_event_stream(&self) -> OffsetMapEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn query(
&self,
source_block_offset: u64,
length: u64,
) -> QueryResponseFut<OffsetMapQueryResult, DefaultFuchsiaResourceDialect>
pub fn query( &self, source_block_offset: u64, length: u64, ) -> QueryResponseFut<OffsetMapQueryResult, DefaultFuchsiaResourceDialect>
Looks up mappings which contain [source_block_offset, source_block_offset + length)
.
The returned mappings will always overlap with a prefix of the requested range, but might
not contain the entire range (for example if there are many discontiguous extents). The
caller can simply repeat the call to query for the remaining suffix of the range.
These mappings are guaranteed to be stable in the lifetime of the OffsetMap connection.
Trait Implementations§
Source§impl Clone for OffsetMapProxy
impl Clone for OffsetMapProxy
Source§fn clone(&self) -> OffsetMapProxy
fn clone(&self) -> OffsetMapProxy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OffsetMapProxy
impl Debug for OffsetMapProxy
Source§impl OffsetMapProxyInterface for OffsetMapProxy
impl OffsetMapProxyInterface for OffsetMapProxy
type QueryResponseFut = QueryResponseFut<Result<Vec<BlockOffsetMapping>, i32>>
fn query(&self, source_block_offset: u64, length: u64) -> Self::QueryResponseFut
Source§impl Proxy for OffsetMapProxy
impl Proxy for OffsetMapProxy
Source§type Protocol = OffsetMapMarker
type Protocol = OffsetMapMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for OffsetMapProxy
impl !RefUnwindSafe for OffsetMapProxy
impl Send for OffsetMapProxy
impl Sync for OffsetMapProxy
impl Unpin for OffsetMapProxy
impl !UnwindSafe for OffsetMapProxy
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