pub struct LambdaListener<State> { /* private fields */ }Expand description
This represents a tide Listener connected to an AWS Lambda execution environment.
Implementations§
Trait Implementations§
Source§impl<State> Debug for LambdaListener<State>
impl<State> Debug for LambdaListener<State>
Source§impl<State> Display for LambdaListener<State>
impl<State> Display for LambdaListener<State>
Source§impl<State> Listener<State> for LambdaListener<State>
impl<State> Listener<State> for LambdaListener<State>
Source§fn bind<'life0, 'async_trait>(
&'life0 mut self,
server: Server<State>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bind<'life0, 'async_trait>(
&'life0 mut self,
server: Server<State>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Bind the listener. This starts the listening process by opening the
necessary network ports, but not yet accepting incoming connections. This
method must be called before
accept.Source§fn accept<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn accept<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start accepting incoming connections. This method must be called only
after
bind has succeeded.Source§fn info(&self) -> Vec<ListenInfo>
fn info(&self) -> Vec<ListenInfo>
Expose information about the connection. This should always return valid
data after
bind has succeeded.Source§impl<State: Clone + Send + Sync + 'static> ToListener<State> for LambdaListener<State>
impl<State: Clone + Send + Sync + 'static> ToListener<State> for LambdaListener<State>
Source§type Listener = LambdaListener<State>
type Listener = LambdaListener<State>
What listener are we converting into?
Source§fn to_listener(self) -> Result<Self::Listener>
fn to_listener(self) -> Result<Self::Listener>
Transform self into a
Listener. Unless self is
already bound/connected to the underlying io, converting to a
listener does not initiate a connection. An Err return
indicates an unsuccessful conversion to a listener, not an
unsuccessful bind attempt.Auto Trait Implementations§
impl<State> Freeze for LambdaListener<State>where
State: Freeze,
impl<State> !RefUnwindSafe for LambdaListener<State>
impl<State> Send for LambdaListener<State>where
State: Send,
impl<State> Sync for LambdaListener<State>where
State: Sync,
impl<State> Unpin for LambdaListener<State>where
State: Unpin,
impl<State> !UnwindSafe for LambdaListener<State>
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