pub struct WapControlHandler { /* private fields */ }Expand description
Serves the anapaya.wap.v1.WapControl service of one WAP.
A grant is only valid on the WAP that handed it out, so every response carries the identity of this WAP next to the grant: the id the client addresses it with in the SNI, and the port its data plane listens on.
Implementations§
Source§impl WapControlHandler
impl WapControlHandler
Sourcepub fn new(grant: GrantManager, wap_id: String, data_plane_port: u16) -> Self
pub fn new(grant: GrantManager, wap_id: String, data_plane_port: u16) -> Self
Creates a handler that grants on grant and reports this WAP as wap_id.
data_plane_port is the port the WAP TCP proxy listens on, so take it from the address the
proxy binds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WapControlHandler
impl RefUnwindSafe for WapControlHandler
impl Send for WapControlHandler
impl Sync for WapControlHandler
impl Unpin for WapControlHandler
impl UnsafeUnpin for WapControlHandler
impl UnwindSafe for WapControlHandler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more