pub enum MapperSessionRequest {
Close {
responder: MapperSessionCloseResponder,
},
CreateVmo {
key: u64,
size: u64,
options: CreateVmoOptions,
responder: MapperSessionCreateVmoResponder,
},
OpenChildSession {
session: ServerEnd<MapperSessionMarker>,
mapping_vmo: Vmo,
parent_key: u64,
port: Option<Port>,
delivery_queue: Option<Vmo>,
responder: MapperSessionOpenChildSessionResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: MapperSessionControlHandle,
method_type: MethodType,
},
}Expand description
Represents an active driver mapping session.
Variants§
Close
Terminates the connection.
After calling Close, the client must not send any other requests.
Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.
Closing the client end of the channel should be semantically equivalent
to calling Close without knowing when the close has completed or its
status.
Fields
responder: MapperSessionCloseResponderCreateVmo
Creates a pager-backed VMO of size bytes associated with key.
Page faults on this VMO are handled directly by the driver mapper.
OpenChildSession
Opens a child mapper session whose reads map through parent_key in the parent session.
When a parent session is closed, all child sessions opened from it are closed as well.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: MapperSessionControlHandlemethod_type: MethodTypeImplementations§
Source§impl MapperSessionRequest
impl MapperSessionRequest
pub fn into_close(self) -> Option<MapperSessionCloseResponder>
pub fn into_create_vmo( self, ) -> Option<(u64, u64, CreateVmoOptions, MapperSessionCreateVmoResponder)>
pub fn into_open_child_session( self, ) -> Option<(ServerEnd<MapperSessionMarker>, Vmo, u64, Option<Port>, Option<Vmo>, MapperSessionOpenChildSessionResponder)>
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 !RefUnwindSafe for MapperSessionRequest
impl !UnwindSafe for MapperSessionRequest
impl Freeze for MapperSessionRequest
impl Send for MapperSessionRequest
impl Sync for MapperSessionRequest
impl Unpin for MapperSessionRequest
impl UnsafeUnpin for MapperSessionRequest
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]