pub enum ListenerRequest {
Listen {
backlog: u32,
responder: ListenerListenResponder,
},
Accept {
con: ConnectionTransport,
responder: ListenerAcceptResponder,
},
}
Expand description
Interface presented by a listener to accept connections.
Variants§
Listen
Registers a listener for a local port. There can only be one listener for
a single port at a time. The channel will have SIGNAL_STREAM_INCOMING
asserted
by the server when there is a connection ready to accept.
Accept
Accept a pending connection from the queue after Listen
was invoked and
SIGNAL_STREAM_INCOMING
was signaled.
Implementations§
Source§impl ListenerRequest
impl ListenerRequest
pub fn into_listen(self) -> Option<(u32, ListenerListenResponder)>
pub fn into_accept( self, ) -> Option<(ConnectionTransport, ListenerAcceptResponder)>
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 Freeze for ListenerRequest
impl !RefUnwindSafe for ListenerRequest
impl Send for ListenerRequest
impl Sync for ListenerRequest
impl Unpin for ListenerRequest
impl !UnwindSafe for ListenerRequest
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