Struct fidl_fuchsia_exception::HandlerProxy
source · pub struct HandlerProxy { /* private fields */ }
Implementations§
source§impl HandlerProxy
impl HandlerProxy
sourcepub fn take_event_stream(&self) -> HandlerEventStream
pub fn take_event_stream(&self) -> HandlerEventStream
Get a Stream of events from the remote end of the Handler protocol
Panics
Panics if the event stream was already taken.
sourcepub fn is_active(&self) -> QueryResponseFut<()>
pub fn is_active(&self) -> QueryResponseFut<()>
Requests the exception handler to send a signal indicating the server is active and able to respond to requests.
It’s recommended clients call IsActive and wait for a response before sending an exception to the server with OnException because a zx.handle:EXCEPTION can’t be released by the client once it’s sent across the channel.
Note: a response guarantees the server was active when it sent the response, but doesn’t preclcude the server being unresponsive after the reply was sent.
sourcepub fn on_exception(
&self,
exception: Exception,
info: &mut ExceptionInfo
) -> QueryResponseFut<()>
pub fn on_exception( &self, exception: Exception, info: &mut ExceptionInfo ) -> QueryResponseFut<()>
This exception mirrors closely the information provided by exception channels. The design is to have clients of this API behave as closely as possible to native exception handlers that are listening to an exception channel.
exception
is an exception handle, which controls the exception’s
lifetime. See exception zircon docs for more information.
info
represents basic exception information as provided by the
exception channel.
Trait Implementations§
source§impl Clone for HandlerProxy
impl Clone for HandlerProxy
source§fn clone(&self) -> HandlerProxy
fn clone(&self) -> HandlerProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HandlerProxy
impl Debug for HandlerProxy
source§impl HandlerProxyInterface for HandlerProxy
impl HandlerProxyInterface for HandlerProxy
type IsActiveResponseFut = QueryResponseFut<()>
fn is_active(&self) -> Self::IsActiveResponseFut
type OnExceptionResponseFut = QueryResponseFut<()>
fn on_exception( &self, exception: Exception, info: &mut ExceptionInfo ) -> Self::OnExceptionResponseFut
source§impl Proxy for HandlerProxy
impl Proxy for HandlerProxy
§type Protocol = HandlerMarker
type Protocol = HandlerMarker
Proxy
controls.