pub struct Server<T: Transport> { /* private fields */ }
Expand description
A server endpoint.
Implementations§
Source§impl<T: Transport> Server<T>
impl<T: Transport> Server<T>
Sourcepub fn close_with_epitaph(&self, epitaph: i32)
pub fn close_with_epitaph(&self, epitaph: i32)
Closes the channel from the server end after sending an epitaph message.
Sourcepub fn send_event<M>(
&self,
ordinal: u64,
event: M,
) -> Result<SendFuture<'_, T>, EncodeError>where
M: Encode<T::SendBuffer>,
pub fn send_event<M>(
&self,
ordinal: u64,
event: M,
) -> Result<SendFuture<'_, T>, EncodeError>where
M: Encode<T::SendBuffer>,
Send an event.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Server<T>
impl<T> !RefUnwindSafe for Server<T>
impl<T> Send for Server<T>
impl<T> Sync for Server<T>
impl<T> Unpin for Server<T>
impl<T> !UnwindSafe for Server<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