pub enum AcceptorRequest {
Accept {
addr: Addr,
responder: AcceptorAcceptResponder,
},
}
Expand description
Interface presented by a listener to accept or reject connections
Variants§
Accept
The response is either a ConnectionTransport
to indicate that the connection
is accepted, or none to indicate that it should be rejected.
Implementations§
Source§impl AcceptorRequest
impl AcceptorRequest
pub fn into_accept(self) -> Option<(Addr, AcceptorAcceptResponder)>
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 AcceptorRequest
impl !RefUnwindSafe for AcceptorRequest
impl Send for AcceptorRequest
impl Sync for AcceptorRequest
impl Unpin for AcceptorRequest
impl !UnwindSafe for AcceptorRequest
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