pub struct Service<T> { /* private fields */ }Expand description
Turn service.
Implementations§
Source§impl<T> Service<T>where
T: ServiceHandler + Clone,
impl<T> Service<T>where
T: ServiceHandler + Clone,
Sourcepub fn new(options: ServiceOptions<T>) -> Self
pub fn new(options: ServiceOptions<T>) -> Self
Create turn service.
Sourcepub fn make_router(
&self,
endpoint: SocketAddr,
interface: SocketAddr,
) -> Router<T>
pub fn make_router( &self, endpoint: SocketAddr, interface: SocketAddr, ) -> Router<T>
create a router.
pub fn get_session_manager(&self) -> &SessionManager<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Service<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Service<T>
impl<T> Send for Service<T>
impl<T> Sync for Service<T>
impl<T> Unpin for Service<T>where
T: Unpin,
impl<T> !UnwindSafe for Service<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request