pub struct Server<AR, CE, CC, PE, PC, WE, WC> { /* private fields */ }Available on crate feature
server only.Implementations§
Source§impl<AR, CE, CC, PE, PC, WE, WC> Server<AR, CE, CC, PE, PC, WE, WC>
impl<AR, CE, CC, PE, PC, WE, WC> Server<AR, CE, CC, PE, PC, WE, WC>
pub fn auth<AR2>(self, auth_request: AR2) -> Server<AR2, CE, CC, PE, PC, WE, WC>
pub fn channel_request<CE2, CC2>( self, channel_entrypoint: CE2, channel_callback: CC2, ) -> Server<AR, CE2, CC2, PE, PC, WE, WC>
pub fn pay_request<PE2, PC2>( self, pay_entrypoint: PE2, pay_callback: PC2, ) -> Server<AR, CE, CC, PE2, PC2, WE, WC>
pub fn withdraw_request<WE2, WC2>( self, withdraw_entrypoint: WE2, withdraw_callback: WC2, ) -> Server<AR, CE, CC, PE, PC, WE2, WC2>
Source§impl<AR, ARFut, CE, CQFut, CC, CCFut, PE, PEFut, PC, PCFut, WE, WEFut, WC, WCFut> Server<AR, CE, CC, PE, PC, WE, WC>where
AR: 'static + Send + Clone + Fn(Callback) -> ARFut,
ARFut: Send + Future<Output = Result<CallbackResponse, StatusCode>>,
CE: 'static + Send + Clone + Fn(()) -> CQFut,
CQFut: Send + Future<Output = Result<Entrypoint, StatusCode>>,
CC: 'static + Send + Clone + Fn(Callback) -> CCFut,
CCFut: Send + Future<Output = Result<CallbackResponse, StatusCode>>,
PE: 'static + Send + Clone + Fn(Option<String>) -> PEFut,
PEFut: Send + Future<Output = Result<Entrypoint, StatusCode>>,
PC: 'static + Send + Clone + Fn(Callback) -> PCFut,
PCFut: Send + Future<Output = Result<CallbackResponse, StatusCode>>,
WE: 'static + Send + Clone + Fn(()) -> WEFut,
WEFut: Send + Future<Output = Result<Entrypoint, StatusCode>>,
WC: 'static + Send + Clone + Fn(Callback) -> WCFut,
WCFut: Send + Future<Output = Result<CallbackResponse, StatusCode>>,
impl<AR, ARFut, CE, CQFut, CC, CCFut, PE, PEFut, PC, PCFut, WE, WEFut, WC, WCFut> Server<AR, CE, CC, PE, PC, WE, WC>where
AR: 'static + Send + Clone + Fn(Callback) -> ARFut,
ARFut: Send + Future<Output = Result<CallbackResponse, StatusCode>>,
CE: 'static + Send + Clone + Fn(()) -> CQFut,
CQFut: Send + Future<Output = Result<Entrypoint, StatusCode>>,
CC: 'static + Send + Clone + Fn(Callback) -> CCFut,
CCFut: Send + Future<Output = Result<CallbackResponse, StatusCode>>,
PE: 'static + Send + Clone + Fn(Option<String>) -> PEFut,
PEFut: Send + Future<Output = Result<Entrypoint, StatusCode>>,
PC: 'static + Send + Clone + Fn(Callback) -> PCFut,
PCFut: Send + Future<Output = Result<CallbackResponse, StatusCode>>,
WE: 'static + Send + Clone + Fn(()) -> WEFut,
WEFut: Send + Future<Output = Result<Entrypoint, StatusCode>>,
WC: 'static + Send + Clone + Fn(Callback) -> WCFut,
WCFut: Send + Future<Output = Result<CallbackResponse, StatusCode>>,
Trait Implementations§
Source§impl Default for Server<fn(Callback) -> Unimplemented<CallbackResponse>, fn(()) -> Unimplemented<Entrypoint>, fn(Callback) -> Unimplemented<CallbackResponse>, fn(Option<String>) -> Unimplemented<Entrypoint>, fn(Callback) -> Unimplemented<CallbackResponse>, fn(()) -> Unimplemented<Entrypoint>, fn(Callback) -> Unimplemented<CallbackResponse>>
impl Default for Server<fn(Callback) -> Unimplemented<CallbackResponse>, fn(()) -> Unimplemented<Entrypoint>, fn(Callback) -> Unimplemented<CallbackResponse>, fn(Option<String>) -> Unimplemented<Entrypoint>, fn(Callback) -> Unimplemented<CallbackResponse>, fn(()) -> Unimplemented<Entrypoint>, fn(Callback) -> Unimplemented<CallbackResponse>>
Auto Trait Implementations§
impl<AR, CE, CC, PE, PC, WE, WC> Freeze for Server<AR, CE, CC, PE, PC, WE, WC>
impl<AR, CE, CC, PE, PC, WE, WC> RefUnwindSafe for Server<AR, CE, CC, PE, PC, WE, WC>where
AR: RefUnwindSafe,
CE: RefUnwindSafe,
CC: RefUnwindSafe,
PE: RefUnwindSafe,
PC: RefUnwindSafe,
WE: RefUnwindSafe,
WC: RefUnwindSafe,
impl<AR, CE, CC, PE, PC, WE, WC> Send for Server<AR, CE, CC, PE, PC, WE, WC>
impl<AR, CE, CC, PE, PC, WE, WC> Sync for Server<AR, CE, CC, PE, PC, WE, WC>
impl<AR, CE, CC, PE, PC, WE, WC> Unpin for Server<AR, CE, CC, PE, PC, WE, WC>
impl<AR, CE, CC, PE, PC, WE, WC> UnwindSafe for Server<AR, CE, CC, PE, PC, WE, WC>where
AR: UnwindSafe,
CE: UnwindSafe,
CC: UnwindSafe,
PE: UnwindSafe,
PC: UnwindSafe,
WE: UnwindSafe,
WC: UnwindSafe,
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