pub struct SessionManager { /* private fields */ }
Trait Implementations§
Source§impl Drop for SessionManager
impl Drop for SessionManager
Source§impl SessionManager for SessionManager
impl SessionManager for SessionManager
async fn on_attach_vmo(self: Arc<Self>, _vmo: &Arc<Vmo>) -> Result<(), Status>
Source§async fn open_session(
self: Arc<Self>,
stream: SessionRequestStream,
offset_map: Option<OffsetMap>,
block_size: u32,
) -> Result<(), Error>
async fn open_session( self: Arc<Self>, stream: SessionRequestStream, offset_map: Option<OffsetMap>, block_size: u32, ) -> Result<(), Error>
Creates a new session to handle
stream
.
The returned future should run until the session completes, for example when the client end
closes.
If offset_map
is set, it will be used to remap the dev_offset of FIFO requests.Source§async fn get_info(&self) -> Result<Cow<'_, DeviceInfo>, Status>
async fn get_info(&self) -> Result<Cow<'_, DeviceInfo>, Status>
Called to get block/partition information for Block::GetInfo, Partition::GetTypeGuid, etc.
Source§fn get_volume_info(
&self,
) -> impl Future<Output = Result<(VolumeManagerInfo, VolumeInfo), Status>> + Send
fn get_volume_info( &self, ) -> impl Future<Output = Result<(VolumeManagerInfo, VolumeInfo), Status>> + Send
Called to handle the GetVolumeInfo FIDL call.
Source§fn query_slices(
&self,
_start_slices: &[u64],
) -> impl Future<Output = Result<Vec<VsliceRange>, Status>> + Send
fn query_slices( &self, _start_slices: &[u64], ) -> impl Future<Output = Result<Vec<VsliceRange>, Status>> + Send
Called to handle the QuerySlices FIDL call.
impl Send for SessionManager
impl Sync for SessionManager
Auto Trait Implementations§
impl !Freeze for SessionManager
impl !RefUnwindSafe for SessionManager
impl Unpin for SessionManager
impl !UnwindSafe for SessionManager
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