Struct fidl_fuchsia_web::ContextProxy
source · pub struct ContextProxy { /* private fields */ }
Implementations§
source§impl ContextProxy
impl ContextProxy
sourcepub fn take_event_stream(&self) -> ContextEventStream
pub fn take_event_stream(&self) -> ContextEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn create_frame(&self, frame: ServerEnd<FrameMarker>) -> Result<(), Error>
pub fn create_frame(&self, frame: ServerEnd<FrameMarker>) -> Result<(), Error>
Creates a new [Frame
] under this [Context
]. Destruction of a [Context
] triggers the
destruction of all of its associated [Frame
]. [Frame
] can be transferred to another
component but cannot be shared across multiple components.
frame
: An interface request that will be bound to the created [Frame
].
sourcepub fn create_frame_with_params(
&self,
params: CreateFrameParams,
frame: ServerEnd<FrameMarker>,
) -> Result<(), Error>
pub fn create_frame_with_params( &self, params: CreateFrameParams, frame: ServerEnd<FrameMarker>, ) -> Result<(), Error>
Similar to [Context.CreateFrame
], with extra parameters.
params
: The configuration used to create the [Frame
]. This method will fail withZX_ERR_INVALID_ARGS
if the table is not clonable.frame
: An interface request that will be bound to the created [Frame
].
Used to observe cookies for sites hosted under this Context.
sourcepub fn get_remote_debugging_port(
&self,
) -> QueryResponseFut<ContextGetRemoteDebuggingPortResult, DefaultFuchsiaResourceDialect>
pub fn get_remote_debugging_port( &self, ) -> QueryResponseFut<ContextGetRemoteDebuggingPortResult, DefaultFuchsiaResourceDialect>
Waits until debugging is available on one or more Frames, and returns the DevTools port number. Multiple calls may be queued to received the port number.
If an error occurred, the ContextError
will be set to this value:
REMOTE_DEBUGGING_PORT_NOT_OPENED
:remote_debugging_port
was not set inCreateContextParams
or the remote debugging service failed to start.
Trait Implementations§
source§impl Clone for ContextProxy
impl Clone for ContextProxy
source§fn clone(&self) -> ContextProxy
fn clone(&self) -> ContextProxy
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 ContextProxyInterface for ContextProxy
impl ContextProxyInterface for ContextProxy
fn create_frame(&self, frame: ServerEnd<FrameMarker>) -> Result<(), Error>
fn create_frame_with_params( &self, params: CreateFrameParams, frame: ServerEnd<FrameMarker>, ) -> Result<(), Error>
type GetRemoteDebuggingPortResponseFut = QueryResponseFut<Result<u16, ContextError>>
fn get_remote_debugging_port(&self) -> Self::GetRemoteDebuggingPortResponseFut
source§impl Debug for ContextProxy
impl Debug for ContextProxy
source§impl Proxy for ContextProxy
impl Proxy for ContextProxy
§type Protocol = ContextMarker
type Protocol = ContextMarker
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 ContextProxy
impl !RefUnwindSafe for ContextProxy
impl Send for ContextProxy
impl Sync for ContextProxy
impl Unpin for ContextProxy
impl !UnwindSafe for ContextProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)