pub enum OffsetMapRequest {
Query {
source_block_offset: u64,
length: u64,
responder: OffsetMapQueryResponder,
},
}
Expand description
See Block/OpenSessionWithOffsetMap.
Variants§
Query
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.
Implementations§
Source§impl OffsetMapRequest
impl OffsetMapRequest
pub fn into_query(self) -> Option<(u64, u64, OffsetMapQueryResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OffsetMapRequest
impl !RefUnwindSafe for OffsetMapRequest
impl Send for OffsetMapRequest
impl Sync for OffsetMapRequest
impl Unpin for OffsetMapRequest
impl !UnwindSafe for OffsetMapRequest
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