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<W>(
    &self,
    ordinal: u64,
    flexibility: Flexibility,
    event: impl Encode<W, T::SendBuffer>,
) -> Result<SendFuture<'_, T>, EncodeError>
 
pub fn send_event<W>( &self, ordinal: u64, flexibility: Flexibility, event: impl Encode<W, T::SendBuffer>, ) -> Result<SendFuture<'_, T>, EncodeError>
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