pub struct Realm;
Expand description
The type corresponding to the Realm protocol. A protocol used by a component instance to manage its own realm, such as for binding to its children.
Requests to this protocol are processed in the order they are received. Clients that wish to send requests in parallel should open multiple connections.
The component framework provides this service to components that use
fuchsia.component.Realm
.
Trait Implementations§
Source§impl ClientCompatFrom<RealmProxy> for Realm
impl ClientCompatFrom<RealmProxy> for Realm
Source§fn client_compat_from(proxy: RealmProxy) -> Client<Self, Channel>
fn client_compat_from(proxy: RealmProxy) -> Client<Self, Channel>
Converts
proxy
into a Client
for this protocol.Source§impl CompatFrom<Realm> for RealmMarker
impl CompatFrom<Realm> for RealmMarker
Source§fn compat_from(_: Realm) -> Self
fn compat_from(_: Realm) -> Self
Converts
value
into a value of this type.Source§impl CompatFrom<RealmMarker> for Realm
impl CompatFrom<RealmMarker> for Realm
Source§fn compat_from(_: RealmMarker) -> Self
fn compat_from(_: RealmMarker) -> Self
Converts
value
into a value of this type.Source§impl Discoverable for Realm
impl Discoverable for Realm
Source§const PROTOCOL_NAME: &'static str = "fuchsia.component.Realm"
const PROTOCOL_NAME: &'static str = "fuchsia.component.Realm"
The service name to use to connect to this discoverable protocol.
Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for Realmwhere
___H: RealmClientHandler<___T> + Send,
___T: Transport,
<OpenController as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<OpenExposedDir as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<CreateChild as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<DestroyChild as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<ListChildren as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<GetResolvedInfo as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<GetChildOutputDictionary as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for Realmwhere
___H: RealmClientHandler<___T> + Send,
___T: Transport,
<OpenController as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<OpenExposedDir as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<CreateChild as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<DestroyChild as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<ListChildren as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<GetResolvedInfo as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
<GetChildOutputDictionary as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for Realmwhere
___H: RealmServerHandler<___T> + Send,
___T: Transport,
<OpenController as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<OpenExposedDir as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<CreateChild as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<DestroyChild as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<ListChildren as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<GetChildOutputDictionary as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for Realmwhere
___H: RealmServerHandler<___T> + Send,
___T: Transport,
<OpenController as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<OpenExposedDir as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<CreateChild as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<DestroyChild as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<ListChildren as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
<GetChildOutputDictionary as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
Source§async fn on_one_way(
handler: &mut ___H,
sender: &ServerSender<Self, ___T>,
ordinal: u64,
buffer: ___T::RecvBuffer,
)
async fn on_one_way( handler: &mut ___H, sender: &ServerSender<Self, ___T>, ordinal: u64, buffer: ___T::RecvBuffer, )
Handles a received server one-way message with the given handler.
Source§async fn on_two_way(
handler: &mut ___H,
sender: &ServerSender<Self, ___T>,
ordinal: u64,
buffer: ___T::RecvBuffer,
responder: Responder,
)
async fn on_two_way( handler: &mut ___H, sender: &ServerSender<Self, ___T>, ordinal: u64, buffer: ___T::RecvBuffer, responder: Responder, )
Handles a received server two-way message with the given handler.
Source§impl<___T> Protocol<___T> for Realmwhere
___T: Transport,
impl<___T> Protocol<___T> for Realmwhere
___T: Transport,
Source§type ClientSender = RealmClientSender<___T>
type ClientSender = RealmClientSender<___T>
The client sender for the protocol. It must be a
#[repr(transparent)]
wrapper around
ClientSender<T>
.Source§type ServerSender = RealmServerSender<___T>
type ServerSender = RealmServerSender<___T>
The server sender for the protocol. It must be a
#[repr(transparent)]
wrapper around
ServerSender<T>
.Auto Trait Implementations§
impl Freeze for Realm
impl RefUnwindSafe for Realm
impl Send for Realm
impl Sync for Realm
impl Unpin for Realm
impl UnwindSafe for Realm
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